Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Oculus Quest crashes

Discussion in 'VR' started by saifshk17, Oct 19, 2020.

Thread Status:
Not open for further replies.
  1. saifshk17

    saifshk17

    Joined:
    Dec 4, 2016
    Posts:
    488
    I am using Unity 2019.4.12 LTS version (latest) and I use Oculus Integration from asset store. I created the android manifest file from Oculus tab and added OVR Camera to the scene. Even with as simple as this scene, the application does not load and crashes. That is, it does not even show Splash screen at all. Here is my log cat. What is the issue?

    Code (JavaScript):
    1. adb logcat --buffer=crash
    2. adb server is out of date.  killing...
    3. * daemon started successfully *
    4. 10-19 12:16:58.171 10980 10980 E AndroidRuntime: FATAL EXCEPTION: main
    5. 10-19 12:16:58.171 10980 10980 E AndroidRuntime: Process: com.oculus.Test001, PID: 10980
    6. 10-19 12:16:58.171 10980 10980 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.oculus.Test001/com.unity3d.player.UnityPlayerActivity}: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.player.UnityPlayerActivity" on path: DexPathList[[zip file "/data/app/com.oculus.Test001-1/base.apk"],nativeLibraryDirectories=[/data/app/com.oculus.Test001-1/lib/arm, /data/app/com.oculus.Test001-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
    7. 10-19 12:16:58.171 10980 10980 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2582)
    8. 10-19 12:16:58.171 10980 10980 E AndroidRuntime:        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2741)
    9. 10-19 12:16:58.171 10980 10980 E AndroidRuntime:        at android.app.ActivityThread.-wrap12(ActivityThread.java)
    10. 10-19 12:16:58.171 10980 10980 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1478)
    11. 10-19 12:16:58.171 10980 10980 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:102)
    12. 10-19 12:16:58.171 10980 10980 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:154)
    13. 10-19 12:16:58.171 10980 10980 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6165)
    14. 10-19 12:16:58.171 10980 10980 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
    15. 10-19 12:16:58.171 10980 10980 E AndroidRuntime:        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    16. 10-19 12:16:58.171 10980 10980 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
    17. 10-19 12:16:58.171 10980 10980 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.player.UnityPlayerActivity" on path: DexPathList[[zip file "/data/app/com.oculus.Test001-1/base.apk"


    and this is my Manifest file:

    Code (JavaScript):
    1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
    2. <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto">
    3.   <application android:label="@string/app_name" android:icon="@mipmap/app_icon" android:allowBackup="false">
    4.     <activity android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" android:configChanges="locale|fontScale|keyboard|keyboardHidden|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" android:launchMode="singleTask" android:name="com.unity3d.player.UnityPlayerActivity" android:excludeFromRecents="true">
    5.       <intent-filter>
    6.         <action android:name="android.intent.action.MAIN" />
    7.         <category android:name="android.intent.category.LAUNCHER" />
    8.       </intent-filter>
    9.       <meta-data android:name="com.oculus.vr.focusaware" android:value="true" />
    10.     </activity>
    11.     <meta-data android:name="unityplayer.SkipPermissionsDialog" android:value="false" />
    12.     <meta-data android:name="com.samsung.android.vr.application.mode" android:value="vr_only" />
    13.     <meta-data android:name="com.oculus.supportedDevices" android:value="quest" />
    14.   </application>
    15.   <uses-feature android:name="android.hardware.vr.headtracking" android:version="1" android:required="true" />
    16. </manifest>
     
  2. Shaunyowns

    Shaunyowns

    Joined:
    Nov 4, 2019
    Posts:
    328
    Hey there, can you report a bug so our team can take a look!
     
Thread Status:
Not open for further replies.