Search Unity

Android cloud build apk complains about dependency issues, but not on local build.

Discussion in 'Unity Build Automation' started by virtuetherapist, Sep 28, 2020.

  1. virtuetherapist

    virtuetherapist

    Joined:
    Jun 24, 2020
    Posts:
    1
    Hi. As the title says, I'm having a problem with Mapbox dependencies once I build the project using Unity Cloud Build. If I build the project locally, no errors are reported. Below, I'll paste the runtime error I'm getting on my Android device. I'll also attach the full build log.

    Unity version: 2019.4.9f1


    2020/09/28 13:58:02.567 27141 27162 Error Unity AndroidJavaException: java.lang.ClassNotFoundException: com.mapbox.android.unity.AndroidGps
    2020/09/28 13:58:02.567 27141 27162 Error Unity java.lang.ClassNotFoundException: com.mapbox.android.unity.AndroidGps
    2020/09/28 13:58:02.567 27141 27162 Error Unity at java.lang.Class.classForName(Native Method)
    2020/09/28 13:58:02.567 27141 27162 Error Unity at java.lang.Class.forName(Class.java:453)
    2020/09/28 13:58:02.567 27141 27162 Error Unity at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
    2020/09/28 13:58:02.567 27141 27162 Error Unity at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0)
    2020/09/28 13:58:02.567 27141 27162 Error Unity at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95)
    2020/09/28 13:58:02.567 27141 27162 Error Unity at android.os.Handler.dispatchMessage(Handler.java:102)
    2020/09/28 13:58:02.567 27141 27162 Error Unity at android.os.Looper.loop(Looper.java:193)
    2020/09/28 13:58:02.567 27141 27162 Error Unity at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)
    2020/09/28 13:58:02.567 27141 27162 Error Unity Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mapbox.android.unity.AndroidGps" on path: DexPathList[[zip file "/data/app/com.mohamedhilalgroup.mhgappar-XhXxp0ViKxEL7H6RyAR3qQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.mohamedhilalgroup.mhgappar-XhXxp0ViKxEL7H6RyAR3qQ==/lib/arm64, /data/app/com.mohamedhilalgroup.mhgappar-XhXxp0ViKxEL7H6RyAR3qQ==/base.apk!/lib/arm64-v8a, /syst
    2020/09/28 13:58:02.571 1365 3410 Error LocationManagerService requestLocationUpdates: uid=10245, pid=27141, provider=gps, package=com.mohamedhilalgroup.mhgappar listener= android.location.ILocationListener$Stub$Proxy@92b0179 intent= null
     

    Attached Files:

  2. jan-rb

    jan-rb

    Joined:
    Oct 26, 2020
    Posts:
    9
    Same problem here but with a local build.
    @virtuetherapist did you ever find a solution to the problem?
    Thanks