Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity Android java.lang.ClassNotFoundException when importing .aar

Discussion in 'Android' started by ZEBEDEE_ENGINEERING, Sep 18, 2022.

  1. ZEBEDEE_ENGINEERING

    ZEBEDEE_ENGINEERING

    Joined:
    Dec 26, 2019
    Posts:
    10
    When adding some external android .aar libraries I have no problem adding them and building, however with one library the app builds but throws the following error on runtime
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.DefaultCompany.ipqsTest/com.unity3d.player.UnityPlayerActivity}: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.player.UnityPlayerActivity" on path: DexPathList[[zip file "/data/app/~~R_xn-CUs5pwACTmC6PkbZg==/com.DefaultCompany.ipqsTest-tfShU9x8KYxzW5KY8USwoQ==/base.apk"],nativeLibraryDirectories=[/data/app/~~R_xn-CUs5pwACTmC6PkbZg==/com.DefaultCompany.ipqsTest-tfShU9x8KYxzW5KY8USwoQ==/lib/arm, /data/app/~~R_xn-CUs5pwACTmC6PkbZg==/com.DefaultCompany.ipqsTest-tfShU9x8KYxzW5KY8USwoQ==/base.apk!/lib/armeabi-v7a, /system/lib, /system/system_ext/lib]]

    Any ideas on how to address this? I noticed the .aar has a proguard.txt file not sure if that matters or not
     
    awsapps likes this.
  2. jowitt_msft

    jowitt_msft

    Joined:
    Feb 11, 2016
    Posts:
    16
    Any luck with this? Experiencing the same issue.