ANR由com.google.android.gms.DynamiteModules引起 [英] ANR caused by com.google.android.gms.DynamiteModules

查看:993
本文介绍了ANR由com.google.android.gms.DynamiteModules引起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Facebook身份验证在我的应用程序中使用Firebase。第三次重新启动我的应用程序后,它冻结,然后显示一个ANR(请参阅我的



依赖关系:

  compile'c​​om .facebook.android:facebook-android-sdk:4.12.1'
compile'c​​om.google.code.gson:gson:2.6.2'
compile'c​​om.spotify.sdk:spotify-auth :1.0.0-beta12@aar'
compile'c​​om.google.firebase:firebase-database:9.0.1'
compile'c​​om.google.firebase:firebase-auth:9.0.1'
编译'com.google.firebase:firebase-core:9.0.1'
compile'c​​om.googl e.firebase:firebase-crash:9.0.1'
compile'c​​om.squareup.okhttp3:okhttp:3.3.0'
compile'c​​om.google.guava:guava:19.0'
编译'com.google.android.gms:play-services:9.0.1'
compile'c​​om.squareup.picasso:picasso:2.5.2'
compile'c​​om.squareup.retrofit2:retrofit: 2.0.2'
compile'c​​om.squareup.retrofit2:converter-gson:2.0.2'
compile'c​​om.android.support:recyclerview-v7:23.4.0'
compile' com.android.support:cardview-v7:23.4.0'
compile'c​​om.android.support:appcompat-v7:23.4.0'
compile'c​​om.android.support:design:23.4。 0'


解决方案

Firebase和Google Play服务。我在升级到Google Play服务9.0.0后,应用程序挂在DynamiteModulesC 中 - 删除一般播放服务,并只包含您需要的特定播放服务库。


I am using Firebase inside my app with Facebook authentication. After the 3th restart of my app, it freezes and then shows an ANR (please see my last question). After some doing some research i found out that something is blocking the main thread. I have no clue why this is happening. The error below show up a couple of times when my app is running (my app does not freeze when this error appears). Does anyone have an idea?

I have included some info below, maybe it helps

Note: Google play services on test device (Samsung SM-G920F) is running version: 9.0.83 (440-121911109)

Getting this error:

05-28 02:35:56.798 29479-29506/? E/DynamiteModule: Failed to load module descriptor class: Didn't find class "com.google.android.gms.dynamite.descriptors.com.google.firebase.auth.ModuleDescriptor" on path: DexPathList[[zip file "/data/app/com.package.myapp-1/base.apk"],nativeLibraryDirectories=[/data/app/com.package.myapp-1/lib/arm64, /vendor/lib64, /system/lib64]]

Theads:

Dependencies:

compile 'com.facebook.android:facebook-android-sdk:4.12.1'
compile 'com.google.code.gson:gson:2.6.2'
compile 'com.spotify.sdk:spotify-auth:1.0.0-beta12@aar'
compile 'com.google.firebase:firebase-database:9.0.1'
compile 'com.google.firebase:firebase-auth:9.0.1'
compile 'com.google.firebase:firebase-core:9.0.1'
compile 'com.google.firebase:firebase-crash:9.0.1'
compile 'com.squareup.okhttp3:okhttp:3.3.0'
compile 'com.google.guava:guava:19.0'
compile 'com.google.android.gms:play-services:9.0.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.squareup.retrofit2:retrofit:2.0.2'
compile 'com.squareup.retrofit2:converter-gson:2.0.2'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.android.support:cardview-v7:23.4.0'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'

解决方案

I had the exact same ANR as you using Firebase and Google Play Services. I solved my problem with the answer in After Upgrading to Google Play Services 9.0.0, App Hangs in DynamiteModulesC -- remove the general play-services and only include the specific play service libraries you need.

这篇关于ANR由com.google.android.gms.DynamiteModules引起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆