Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Telemetry crash at start up #10

Closed
zugaldia opened this issue Oct 20, 2018 · 1 comment
Closed

Telemetry crash at start up #10

zugaldia opened this issue Oct 20, 2018 · 1 comment
Assignees
Labels
Bug Something isn't working

Comments

@zugaldia
Copy link
Member

I'm trying to build a simple test project using 0.1.0. However, the app would crash at start up because MapboxTelemetry isn't included (it seems it was commented out here):

2018-10-20 13:45:06.841 30382-30382/com.mapbox.visiontest E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.mapbox.visiontest, PID: 30382
    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/mapbox/android/telemetry/MapboxTelemetry;
        at com.mapbox.vision.VisionManager.create(VisionManager.kt:191)
        at com.mapbox.visiontest.MainActivity.onCreate(MainActivity.kt:12)
        at android.app.Activity.performCreate(Activity.java:7136)
        at android.app.Activity.performCreate(Activity.java:7127)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2893)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6669)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Adding api "com.mapbox.mapboxsdk:mapbox-android-telemetry:3.2.0" to the app's build.gradle dependecies fixes it. Happy to cut a PR if we're ready to bring back the dependency.

/cc: @BenDenen @yunikkk

@yunikkk yunikkk self-assigned this Oct 20, 2018
@yunikkk yunikkk added the Bug Something isn't working label Oct 20, 2018
@yunikkk
Copy link
Collaborator

yunikkk commented Oct 20, 2018

Ahh, right, it was a last minute fix with Telemetry SDK which we have to patch and include locally build aar. We forgot to mention that in setup instructions though, will fix it =\

Right now you can fix that by manuallly attaching needed aar from mapbox/mapbox-vision-android-teaser#8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants