Oculus Platform Sdk Initialization for Gear VR not working

Hi

I have been trying to implement Oculus IAP for a test Gear App.
When I call the very first Initialize() method:

Oculus.Platform.Core.Initialize ();

there occurs an error saying:

In Editor Mode:

DllNotFoundException: LibOVRPlatform64_1

In Gear VR

UnityEngine.UnityException:OculusPlatform failed to initialize.

I have setup App in Oculus dashboard and added App ID in Platform Settings in Unity Editor as well. I was following this tutorial: https://forums.oculus.com/developer/discussion/40444/unity-iap-tutorial

My guess is you are missing the Oculus libraries for IAP. That DLL not found exception should point you right at the issue. Look in the Oculus SDK and see if that DLL is in there and copy it into your project. You are also probably missing an aar or jar file from the SDK that works with the Gear VR.

NOTE: I know nothing about IAP for Oculus or Gear VR. Just my best guess from the errors you are seeing.

Thanks for quick response.

Yes you are right about DllNotFoundException as UnityPackage file doesn’t have the dll file. I check the zip file pack there is a “windows” folder which contains the file LibOVRPlatform64_1 but it is not dll. Its format is .lib which I guess is for some other platform as it has a cpp file with it as well.

But I already have .so file for android so it should work in usual way.

And the so file is bundled into the APK correctly? If you remove the IAP stuff, does the application go back to running correctly on GearVR?

If you haven’t already you might want to post your question/issue to whatever public facility Oculus has setup for handling questions about its SDKs.

Apart from this application runs fine. I have asked a question on Oculus developer forum as well. I hope to get a solution.

After searching a lot I got it working with unity editor.Just need to install Oculus app for the PC it contains the standalone plugin folder.