Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android 6 Exception (google map?)

Tags:

android

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?

like image 389
Alexandr Sulimov Avatar asked Apr 30 '17 04:04

Alexandr Sulimov


1 Answers

@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.

like image 154
Sagaryal Avatar answered Dec 12 '22 07:12

Sagaryal