我在firebase崩溃报告中遇到异常。
但是不要理解异常的原因。
应用程序在android 5上工作好
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)
我使用最后的libs
compile 'com.google.android.gms:play-services:10.2.4'
compile 'com.google.android.gms:play-services-maps:10.2.4'
P.S。使用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
适用于Android 5设备,Android模拟器6.0,Android模拟器7.0
在Android 6.0.1设备上崩溃
可能是哪个原因?
答案 0 :(得分:1)
@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.
答案 1 :(得分:0)
可能是因为图书馆。
compile 'com.google.android.gms:play-services:10.2.4'
如果您正在使用
compile 'com.google.android.gms:play-services:10.2.4'
您不必再次使用play-services-maps:10.2.4
。
因此,我建议您仅使用实际上您的项目所需的库依赖项。由于play-services
库的完整版可能导致 65K 方法错误,如Google Play服务库设置的Official Documentation中所述。
要了解Firebase崩溃报告,您必须将mapping.txt
文件上传到Firebase控制台。有关详情,请参阅此Firebase Official Documentation