Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

android 12, APP keep crashing #731

@fhlkm

Description

@fhlkm

When I try to install app:
adb install C:\Users******\Downloads\mapbox-gl-native-android-main\MapboxGLAndroidSDKTestApp\build\outputs\apk\debug\MapboxGLAndroidSDKTestApp-debug.apk
Performing Streamed Install
adb: failed to install C:\Users\hanlu.feng\Downloads\mapbox-gl-native-android-main\MapboxGLAndroidSDKTestApp\build\outputs\apk\debug\MapboxGLAndroidSDKTestApp-debug.apk: Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI]

Then I try to install
C:\Users\hanlu.feng>adb install -t C:\Users******\Downloads\mapbox-gl-native-android-main\MapboxGLAndroidSDKTestApp\build\outputs\apk\debug\MapboxGLAndroidSDKTestApp-debug.apk
Performing Streamed Install
Success

When I open app, app crash:

06-13 17:06:41.874 21680 21680 E AndroidRuntime: java.lang.RuntimeException: Unable to create application com.mapbox.mapboxsdk.testapp.MapboxApplication: java.lang.IllegalStateException: Telemetry was unavailable during test application start.
06-13 17:06:41.874 21680 21680 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7511)
06-13 17:06:41.874 21680 21680 E AndroidRuntime: at android.app.ActivityThread.access$1700(ActivityThread.java:310)
06-13 17:06:41.874 21680 21680 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2281)
06-13 17:06:41.874 21680 21680 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
06-13 17:06:41.874 21680 21680 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:226)
06-13 17:06:41.874 21680 21680 E AndroidRuntime: at android.os.Looper.loop(Looper.java:313)
06-13 17:06:41.874 21680 21680 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8663)
06-13 17:06:41.874 21680 21680 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
06-13 17:06:41.874 21680 21680 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)
06-13 17:06:41.874 21680 21680 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
06-13 17:06:41.874 21680 21680 E AndroidRuntime: Caused by: java.lang.IllegalStateException: Telemetry was unavailable during test application start.
06-13 17:06:41.874 21680 21680 E AndroidRuntime: at com.mapbox.mapboxsdk.testapp.MapboxApplication.initializeMapbox(MapboxApplication.java:82)
06-13 17:06:41.874 21680 21680 E AndroidRuntime: at com.mapbox.mapboxsdk.testapp.MapboxApplication.onCreate(MapboxApplication.java:42)
06-13 17:06:41.874 21680 21680 E AndroidRuntime: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1211)
06-13 17:06:41.874 21680 21680 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7506)
06-13 17:06:41.874 21680 21680 E AndroidRuntime: ... 9 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions