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?
adb logcat --buffer=crash
adb server is out of date. killing...
* daemon started successfully *
10-19 12:16:58.171 10980 10980 E AndroidRuntime: FATAL EXCEPTION: main
10-19 12:16:58.171 10980 10980 E AndroidRuntime: Process: com.oculus.Test001, PID: 10980
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]]
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2582)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2741)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1478)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6165)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
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"],nativeLibraryDirectories=[/data/app/com.oculus.Test001-1/lib/arm, /data/app/com.oculus.Test001-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at android.app.Instrumentation.newActivity(Instrumentation.java:1079)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2572)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: ... 9 more
10-19 12:16:58.171 10980 10980 E AndroidRuntime: Suppressed: java.io.IOException: No original dex files found for dex location /data/app/com.oculus.Test001-1/base.apk
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at dalvik.system.DexFile.openDexFileNative(Native Method)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at dalvik.system.DexFile.openDexFile(DexFile.java:367)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at dalvik.system.DexFile.<init>(DexFile.java:112)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at dalvik.system.DexFile.<init>(DexFile.java:77)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at dalvik.system.DexPathList.loadDexFile(DexPathList.java:359)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at dalvik.system.DexPathList.makeElements(DexPathList.java:323)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at dalvik.system.DexPathList.makeDexElements(DexPathList.java:263)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at dalvik.system.DexPathList.<init>(DexPathList.java:126)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:48)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:64)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at com.android.internal.os.PathClassLoaderFactory.createClassLoader(PathClassLoaderFactory.java:43)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:58)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:524)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at android.app.LoadedApk.getClassLoader(LoadedApk.java:557)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at android.app.ActivityThread.getTopLevelResources(ActivityThread.java:1867)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at android.app.LoadedApk.getResources(LoadedApk.java:770)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at android.app.ContextImpl.<init>(ContextImpl.java:2038)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at android.app.ContextImpl.createAppContext(ContextImpl.java:1983)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5320)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at android.app.ActivityThread.-wrap2(ActivityThread.java)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1546)
10-19 12:16:58.171 10980 10980 E AndroidRuntime: ... 6 more
and this is my Manifest file:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto">
<application android:label="@string/app_name" android:icon="@mipmap/app_icon" android:allowBackup="false">
<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">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data android:name="com.oculus.vr.focusaware" android:value="true" />
</activity>
<meta-data android:name="unityplayer.SkipPermissionsDialog" android:value="false" />
<meta-data android:name="com.samsung.android.vr.application.mode" android:value="vr_only" />
<meta-data android:name="com.oculus.supportedDevices" android:value="quest" />
</application>
<uses-feature android:name="android.hardware.vr.headtracking" android:version="1" android:required="true" />
</manifest>