Search Unity

Bug Error due to UnityAndroidPermissions class

Discussion in 'AR' started by acruz0426, Nov 18, 2022.

  1. acruz0426

    acruz0426

    Joined:
    Nov 18, 2022
    Posts:
    2
    Hello,

    I am running into a problem when running my AR app on my Samsung tab s6 lite.
    For some reason the screen just shows a black screen and when I check the logcat the following appears:

    2022/11/18 15:17:10.288 8678 10071 Error Unity AndroidJavaException: java.lang.ClassNotFoundException: com.unity3d.plugin.UnityAndroidPermissions

    2022/11/18 15:17:10.288 8678 10071 Error Unity java.lang.ClassNotFoundException: com.unity3d.plugin.UnityAndroidPermissions

    2022/11/18 15:17:10.288 8678 10071 Error Unity at java.lang.Class.classForName(Native Method)

    2022/11/18 15:17:10.288 8678 10071 Error Unity at java.lang.Class.forName(Class.java:454)

    2022/11/18 15:17:10.288 8678 10071 Error Unity at com.unity3d.player.UnityPlayer.nativeRender(Native Method)

    2022/11/18 15:17:10.288 8678 10071 Error Unity at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0)

    2022/11/18 15:17:10.288 8678 10071 Error Unity at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95)

    2022/11/18 15:17:10.288 8678 10071 Error Unity at android.os.Handler.dispatchMessage(Handler.java:102)

    2022/11/18 15:17:10.288 8678 10071 Error Unity at android.os.Looper.loop(Looper.java:247)

    2022/11/18 15:17:10.288 8678 10071 Error Unity at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)

    2022/11/18 15:17:10.288 8678 10071 Error Unity Caused by: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.plugin.UnityAndroidPermissions" on path: DexPathList[[zip file "/data/app/~~wd-is9-paF45U7TmUvArLw==/com.Animus.ARGlasses-xYwk5AhdsH1c8qHpSQR1BQ==/base.apk"],nativeLibraryDirectories=[/data/app/~~wd-is9-paF45U7TmUvArLw==/com.Animus.ARGlasses-xYwk5AhdsH1c8qHpSQR1BQ==/lib/arm64, /data/app/~~wd-is9-paF45U7TmUvArLw==/com.

    I know that the UnityAndroidPermissions.aar file is located in Packages/ARCore XR Plugin/Runtime/Android folder. I also saw on another thread that moving this file to plugins/android/lib would solve the problem but I wasn't able to move the file since it would cause a duplication error and when I try deleting the original source, I get hit with an immutable folder warning. I would appreciate any help with this.