随着最近对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/活动经理(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.googlefirebase.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+