相关疑难解决方法(0)

升级到Google Play Services 9.0.0后,App会在DynamiteModulesC中挂起

通过以下更改将开发中的应用程序升级到9.0.0并重新生成google-services.json:

classpath 'com.google.gms:google-services:3.0.0'
compile 'com.google.android.gms:play-services:9.0.0'
Run Code Online (Sandbox Code Playgroud)

升级后,当应用程序初始化时,将显示预期的logcat消息序列.大约7秒后,再次输出相同的消息序列,并添加标题background_crash.例如:

17:39:30.162 5453-5453/com.xxx.nub:background_crash I/MultiDex: install done
Run Code Online (Sandbox Code Playgroud)

该应用程序正常运行,直到它变得隐藏,例如通过在另一个应用程序中启动活动.5秒后,系统检测到应用程序已挂起:

05-20 17:40:10.315 5138-5138/com.xxx.nub I/MainActivity: STOP MainActivity
05-20 17:40:10.375 5138-5138/com.xxx.nub I/NubApplication: onTrimMemory(): TRIM_MEMORY_UI_HIDDEN
05-20 17:40:10.375 5138-5138/com.xxx.nub D/FirebaseApp: Notifying background state change listeners.
05-20 17:45:10.465 5138-5143/com.xxx.nub I/dalvikvm: threadid=3: reacting to signal 3
05-20 17:45:10.565 5138-5143/com.xxx.nub I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
Run Code Online (Sandbox Code Playgroud)

堆栈跟踪显示应用程序已挂起 com.google.android.gms.DynamiteModulesC

----- pid 5138 at 2016-05-20 17:45:10 -----
Cmd line: com.xxx.nub

JNI: CheckJNI is off; workarounds are off; pins=0; globals=295

DALVIK THREADS:
(mutexes: tll=0 …
Run Code Online (Sandbox Code Playgroud)

android google-play-services

15
推荐指数
1
解决办法
4563
查看次数

实施Google Firebase后Android应用程序会冻结

这是我的build.gradle

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.android.support:design:23.4.0'
    compile 'com.android.support:cardview-v7:23.4.0'
    compile 'com.android.support:support-v4:23.4.0'
    compile 'com.github.castorflex.smoothprogressbar:library:1.1.0'
    compile 'com.google.android.gms:play-services:9.0.2'
    compile 'com.google.firebase:firebase-core:9.0.2'
    compile 'com.google.firebase:firebase-analytics:9.0.2'
    compile 'com.google.firebase:firebase-ads:9.0.2'
    compile 'com.google.firebase:firebase-crash:9.0.2'
    compile 'com.google.firebase:firebase-messaging:9.0.2'
}
apply plugin: 'com.google.gms.google-services'
Run Code Online (Sandbox Code Playgroud)

应用程序恢复时,应用程序会冻结.它给anr(活动没有响应)错误.

游戏服务9.0+或firebase有什么问题吗?

android firebase google-play-services

12
推荐指数
1
解决办法
2496
查看次数

标签 统计

android ×2

google-play-services ×2

firebase ×1