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?
@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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With