I get exception in firebase crash report.
But don`t understand cause of exception.
App work on android 5 good
Exception java.lang.IllegalAccessError: Method 'java.lang.Object ade.a(int, java.lang.Object, java.lang.Object)' is inaccessible to class 'com.google.maps.api.android.lib6.impl.fb' (declaration of 'com.google.maps.api.android.lib6.impl.fb' appears in /data/user/0/com.google.android.gms/app_chimera/m/ 00000013/DynamiteModulesB_GmsCore_prodmnc_alldpi_release.apk) com.google.maps.api.android.lib6.impl.fb.run (:com.google.android.gms.DynamiteModulesB:5259) java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1113) java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:588) java.lang.Thread.run (Thread.java:818)
I use last libs
compile 'com.google.android.gms:play-services:10.2.4' compile 'com.google.android.gms:play-services-maps:10.2.4'
P.S. Change libs using to
//compile 'com.google.android.gms:play-services:10.2.4' compile 'com.google.android.gms:play-services-maps:10.2.4' compile 'com.google.android.gms:play-services-location:10.2.4'
P.S.S
Work on Android 5 device, Android emulator 6.0, Android emulator 7.0
Crash on Android 6.0.1 device
Which cause can be?
2 Answers
Answers 1
May be because of the library.
compile 'com.google.android.gms:play-services:10.2.4'
If your are using
compile 'com.google.android.gms:play-services:10.2.4'
you don't have to use play-services-maps:10.2.4
once again.
So, I would suggest you to use only the library dependency that actually your project wants. As full version of play-services
library may lead to 65K method error as described in Official Documentation of Google Play Services Library Setup.
And to understand the Firebase crash report you have to upload mapping.txt
file to your Firebase console. For more refer this Firebase Official Documentation
Answers 2
@Alexandr. It would be great if you post the list of installed libraries from gradle file.
I too suffered similar problem before. We should first remember that, try not to use different versions
between firebase libraries
and google play services
. They both should have same version number.
Since you used 10.2.4
version for google play service, same version should be used for firebase libraries too. Using cross-version sometimes creates a run-time problem and is also warned in android-studio to avoid it.
But this also sometimes does not work and didn't solve my problem then. So changed 10.2.4
to latest version 11.x.x
and it solved. If it didn't again, try another version but near to the latest one.
Here is the link to the firebase and google-play-service latest library list. Hope it helps.
0 comments:
Post a Comment