Hi,
Hope someone can help me with this issue. I'm making a simple Android app to scan an image and have an AR experience, the scene is already done in Unity with Vuforia and was exported to Android following this article.
Once exported, it was deployed and the test worked fine, later I changed the gradle and Manifest file to embed it into my app as a Library, but once I call UnityPlayerActivity class, the screen with the "Made by Unity" is shown and afterwards, when the camera should be launched, is showing a black screen instead.
Notes:
- My project already has the Vuforia SDK, and Camera permission granted.
- Tried to call the VuforiaRuntime class but cannot be found.
The logcat throws:
E/Unity: AndroidJavaException: java.lang.ClassNotFoundException: com.vuforia.VuforiaUnityPlayer.VuforiaInitializer java.lang.ClassNotFoundException: com.vuforia.VuforiaUnityPlayer.VuforiaInitializer at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:324) at java.lang.Class.forName(Class.java:285) at com.unity3d.player.UnityPlayer.nativeRender(Native Method) at com.unity3d.player.UnityPlayer.c(Unknown Source) at com.unity3d.player.UnityPlayer$e$2.queueIdle(Unknown Source) at android.os.MessageQueue.next(MessageQueue.java:392) at android.os.Looper.loop(Looper.java:135) at com.unity3d.player.UnityPlayer$e.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.vuforia.VuforiaUnityPlayer.VuforiaInitializer" on path: DexPathList[[zip file "/data/app/com.example.arvuforia-2/base.apk", zip file "/data/app/com.example.arvuforia-2/split_lib_dependencies_apk.apk", zip file "/data/app/com.example.arvuforia-2/spli E/Unity: Exception in callback: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> UnityEngine.AndroidJavaException: java.lang.ClassNotFoundException: com.vuforia.VuforiaUnityPlayer.VuforiaInitializer java.lang.ClassNotFoundException: com.vuforia.VuforiaUnityPlayer.VuforiaInitializer at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:324) at java.lang.Class.forName(Class.java:285) at com.unity3d.player.UnityPlayer.nativeRender(Native Method) at com.unity3d.player.UnityPlayer.c(Unknown Source) at com.unity3d.player.UnityPlayer$e$2.queueIdle(Unknown Source) at android.os.MessageQueue.next(MessageQueue.java:392) at android.os.Looper.loop(Looper.java:135) at com.unity3d.player.UnityPlayer$e.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.vuforia.VuforiaUnityPlayer.VuforiaInitializer" on path: DexPathList[[zip file "/data/app/com.example.arvuforia-2/base.apk", zip file " E/mono: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at UnityEngine.AndroidJavaObject.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0 at UnityEngine.AndroidJavaObject.Finalize () [0x00000] in <filename unknown>:0 E/mono: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at UnityEngine.AndroidJavaObject.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0 at UnityEngine.AndroidJavaObject.Finalize () [0x00000] in <filename unknown>:0 E/Unity: AndroidJavaException: java.lang.ClassNotFoundException: com.vuforia.VuforiaUnityPlayer.VuforiaInitializer java.lang.ClassNotFoundException: com.vuforia.VuforiaUnityPlayer.VuforiaInitializer at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:324) at java.lang.Class.forName(Class.java:285) at com.unity3d.player.UnityPlayer.nativeRender(Native Method) at com.unity3d.player.UnityPlayer.c(Unknown Source) at com.unity3d.player.UnityPlayer$e$2.queueIdle(Unknown Source) at android.os.MessageQueue.next(MessageQueue.java:392) at android.os.Looper.loop(Looper.java:135) at com.unity3d.player.UnityPlayer$e.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.vuforia.VuforiaUnityPlayer.VuforiaInitializer" on path: DexPathList[[zip file "/data/app/com.example.arvuforia-2/base.apk", zip file "/data/app/com.example.arvuforia-2/split_lib_dependencies_apk.apk", zip file "/data/app/com.example.arvuforia-2/spli D/AudioTrack: stop(): 0xb87725c0
E/Unity: Vuforia cannot be started before it is initialized. Please disable Delayed Initializationin the Vuforia configuration or initialize Vuforia manually with the VuforiaRuntime-class.
Same for me. Unity 2017.3.0f3
Same for me. Unity 2017.3.0f3
Any help?
did you find a solution ??
did you find a solution ??