Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  3. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

Didn't find class "com.unity.oculus.OculusUnity" on Oculus Quest

Discussion in 'AR/VR (XR) Discussion' started by AboveFrozenPeaks, Sep 5, 2020.

  1. AboveFrozenPeaks

    AboveFrozenPeaks

    Joined:
    Jun 11, 2017
    Posts:
    2
    update: I followed the same steps using 2019.4.f1 and it worked, so it seems to be an issue with 2020.1

    another update: I followed the tutorial from scratch in 2020.1 again and it worked this time. Comparing the two I don't see what I missed the first time, but the issue seems to be resolved.

    Hello,

    I am trying to set up a simple scene in 2020.1 following this XR Interaction Toolkit tutorial:



    But when I build and run on the quest, it immediately crashes with the following error.

    2020-09-04 22:08:49.269 12688-12703/? A/art: art/runtime/runtime.cc:422] Runtime aborting --- recursively, so no thread-specific detail!
    2020-09-04 22:08:49.269 12688-12703/? A/art: art/runtime/runtime.cc:422]
    2020-09-04 22:08:49.269 12688-12703/? A/art: art/runtime/runtime.cc:427] No pending exception expected: java.lang.ClassNotFoundException: Didn't find class "com.unity.oculus.OculusUnity" on path: DexPathList[[zip file "/data/app/com.DefaultCompany.VRTests-2/base.apk"],nativeLibraryDirectories=[/data/app/com.DefaultCompany.VRTests-2/lib/arm, /data/app/com.DefaultCompany.VRTests-2/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
    2020-09-04 22:08:49.269 12688-12703/? A/art: art/runtime/runtime.cc:427] at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
    2020-09-04 22:08:49.269 12688-12703/? A/art: art/runtime/runtime.cc:427] at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
    2020-09-04 22:08:49.269 12688-12703/? A/art: art/runtime/runtime.cc:427] at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
    2020-09-04 22:08:49.269 12688-12703/? A/art: art/runtime/runtime.cc:427] at java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader, java.lang.String) (Runtime.java:-2)
    2020-09-04 22:08:49.269 12688-12703/? A/art: art/runtime/runtime.cc:427] at java.lang.String java.lang.Runtime.doLoad(java.lang.String, java.lang.ClassLoader) (Runtime.java:1072)
    2020-09-04 22:08:49.269 12688-12703/? A/art: art/runtime/runtime.cc:427] at void java.lang.Runtime.load0(java.lang.Class, java.lang.String) (Runtime.java:906)
    2020-09-04 22:08:49.269 12688-12703/? A/art: art/runtime/runtime.cc:427] at void java.lang.System.load(java.lang.String) (System.java:1505)
    2020-09-04 22:08:49.269 12688-12703/? A/art: art/runtime/runtime.cc:427] at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
    2020-09-04 22:08:49.269 12688-12703/? A/art: art/runtime/runtime.cc:427] at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
    2020-09-04 22:08:49.269 12688-12703/? A/art: art/runtime/runtime.cc:427] at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
    2020-09-04 22:08:49.269 12688-12703/? A/art: art/runtime/runtime.cc:427] at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:98)
    2020-09-04 22:08:49.269 12688-12703/? A/art: art/runtime/runtime.cc:427] at void android.os.Looper.loop() (Looper.java:154)
    2020-09-04 22:08:49.269 12688-12703/? A/art: art/runtime/runtime.cc:427] at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
    2020-09-04 22:08:49.269 12688-12703/? A/art: art/runtime/runtime.cc:427]
    2020-09-04 22:08:49.269 12688-12703/? A/art: art/runtime/runtime.cc:427]


    Google gives no results at all for "com.unity.oculus.OculusUnity" so I'm not sure what I'm missing here. I have the XR and Oculus packages installed:
    https://imgur.com/a/OPTiJbG



    Any ideas?
     
    Last edited: Sep 5, 2020
  2. jeremedia

    jeremedia

    Joined:
    Apr 21, 2015
    Posts:
    35
    You ever resolve this? I'm now seeing it on a project that's been building fine for a while.
     
unityunity