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

[ANDROID] Mapbox crashing the APP #814

Closed
Jose4gg opened this issue Nov 28, 2017 · 6 comments
Closed

[ANDROID] Mapbox crashing the APP #814

Jose4gg opened this issue Nov 28, 2017 · 6 comments

Comments

@Jose4gg
Copy link

Jose4gg commented Nov 28, 2017

After Mapbox ask for permissions on Android the app starts crashing itself continuously.

11-28 13:11:28.309 5043 5043 E UncaughtException: java.lang.AbstractMethodError: abstract method "boolean com.google.android.gms.common.api.Api$zze.zzaax()" 11-28 13:11:28.309 5043 5043 E UncaughtException: at com.google.android.gms.common.api.GoogleApiClient$Builder.build(Unknown Source) 11-28 13:11:28.309 5043 5043 E UncaughtException: at com.mapbox.services.android.telemetry.location.GoogleLocationEngine.<init>(GoogleLocationEngine.java:38) 11-28 13:11:28.309 5043 5043 E UncaughtException: at com.mapbox.services.android.telemetry.location.GoogleLocationEngine.getLocationEngine(GoogleLocationEngine.java:43) 11-28 13:11:28.309 5043 5043 E UncaughtException: at com.mapbox.services.android.telemetry.location.GoogleLocationEngineFactory.supply(GoogleLocationEngineFactory.java:17) 11-28 13:11:28.309 5043 5043 E UncaughtException: at com.mapbox.services.android.telemetry.location.LocationEngineProvider.initAvailableLocationEngines(LocationEngineProvider.java:44) 11-28 13:11:28.309 5043 5043 E UncaughtException: at com.mapbox.services.android.telemetry.location.LocationEngineProvider.<init>(LocationEngineProvider.java:23) 11-28 13:11:28.309 5043 5043 E UncaughtException: at com.mapbox.services.android.telemetry.MapboxTelemetry.registerLocationUpdates(MapboxTelemetry.java:481) 11-28 13:11:28.309 5043 5043 E UncaughtException: at com.mapbox.services.android.telemetry.MapboxTelemetry.setTelemetryEnabled(MapboxTelemetry.java:426) 11-28 13:11:28.309 5043 5043 E UncaughtException: at com.mapbox.services.android.telemetry.MapboxTelemetry.loadUserPreferences(MapboxTelemetry.java:396) 11-28 13:11:28.309 5043 5043 E UncaughtException: at com.mapbox.services.android.telemetry.MapboxTelemetry.initialize(MapboxTelemetry.java:178) 11-28 13:11:28.309 5043 5043 E UncaughtException: at com.mapbox.services.android.telemetry.MapboxTelemetry.initialize(MapboxTelemetry.java:125) 11-28 13:11:28.309 5043 5043 E UncaughtException: at com.mapbox.mapboxsdk.Mapbox.getInstance(Mapbox.java:55) 11-28 13:11:28.309 5043 5043 E UncaughtException: at com.mapbox.rctmgl.modules.RCTMGLModule$1.run(RCTMGLModule.java:245) 11-28 13:11:28.309 5043 5043 E UncaughtException: at android.os.Handler.handleCallback(Handler.java:751) 11-28 13:11:28.309 5043 5043 E UncaughtException: at android.os.Handler.dispatchMessage(Handler.java:95) 11-28 13:11:28.309 5043 5043 E UncaughtException: at android.os.Looper.loop(Looper.java:154) 11-28 13:11:28.309 5043 5043 E UncaughtException: at android.app.ActivityThread.main(ActivityThread.java:6119) 11-28 13:11:28.309 5043 5043 E UncaughtException: at java.lang.reflect.Method.invoke(Native Method) 11-28 13:11:28.309 5043 5043 E UncaughtException: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) 11-28 13:11:28.309 5043 5043 E UncaughtException: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

@Jose4gg
Copy link
Author

Jose4gg commented Nov 28, 2017

If I select DENY the app starts perfectly

@hernanmateo
Copy link
Contributor

hernanmateo commented Nov 28, 2017

I don't know your exact situation, but I pass through a similar issue by importing some google play services packages in the build.gradle file:

dependencies {
    [...]
    compile 'com.google.android.gms:play-services-base:+'
    compile 'com.google.android.gms:play-services-location:+'
    compile 'com.google.android.gms:play-services-maps:+'
}

@GuillotJessica
Copy link

GuillotJessica commented Nov 28, 2017

@hernanmateo
I copy the following line into Android/App/build.gradle and get the following error during build to the simulator :
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowException: Cannot merge new index 66297 into a non-jumbo instruction!
Did you do anything else in that matter
Thx,
Jessica

@hernanmateo
Copy link
Contributor

Try to enable dexOptions/jumboMode in your app/build.grade file

[...]
android {
    [...]
    dexOptions {
        jumboMode true
    }
}

@GuillotJessica
Copy link

@hernanmateo it works fine thx 🥇

@nitaliano
Copy link
Owner

@Jose4gg It does sound like certain deps are colliding I would recommending doing what @hernanmateo mentioned above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants