【发布时间】:2016-06-11 05:43:59
【问题描述】:
随着最近对 GMS 的更新,引入了新的 ANR。如果您退出应用程序,然后返回,那就是初始化 ANR 的时间。线程跟踪似乎指向 Firebase,但我什至从未开始使用 Firebase。我猜它一定是新 GMS 包的一部分?
06-11 00:34:00.143: E/ActivityManager(1487): com.myapp 中的 ANR
06-11 00:34:00.143: E/ActivityManager(1487): PID: 19700
06-11 00:34:00.143:E/ActivityManager(1487):原因:意图广播 { act=com.google.firebase.INSTANCE_ID_EVENT flg=0x14 cmp=com.myapp/com.google.firebase.iid .FirebaseInstanceIdInternalReceiver(有附加功能)}
这是我的依赖项:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.google.code.gson:gson:2.4'
compile 'com.mindscapehq.android:raygun4android:2.1.0'
compile 'com.squareup.okhttp:okhttp:2.5.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.google.android.gms:play-services-gcm:9.0.2'
compile 'com.google.android.gms:play-services:9.0.2'
compile 'com.github.chrisbanes:PhotoView:1.2.6'
compile 'com.google.android.gms:play-services-ads:9.0.2'
compile 'com.google.android.gms:play-services-auth:9.0.2'
}
我的模拟器有 Play Services 9.+
【问题讨论】:
-
应该在问题中发布你的 gradle 文件内容
-
查看我对依赖项的编辑。
-
@CommonsWare ,你总是有很好的洞察力。我现在真的需要一些。
-
听起来可能有一个非常罕见的问题。你觉得和这个一样吗? groups.google.com/forum/#!msg/firebase-talk/Z4vqS1Ml3N4/… 如果是这样,您能否在我在讨论结束时显示的 URL 上提交一个错误?
-
我觉得和那个完全一样。谢谢。
标签: android firebase android-anr-dialog