gpt4 book ai didi

android - 应用程序有时会在从后台恢复后停止响应。 Firebase 应该受到指责吗?

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:25:00 24 4
gpt4 key购买 nike

应用每隔几次恢复就会停止响应。这只发生在发布版本上,而不是调试版本。它发生在任何 Activity 中,而且似乎根本没有任何模式。我终于在 logcat 中发现了以下 ANR。我不是很熟悉谷歌标签管理器,但我没有在我的应用程序中明确使用它,但我在想也许 Firebase 确实使用它进行分析。如果是这样,是否有任何方法可以关闭分析?还有其他建议吗?

ANR

ANR in com.levipayne.liferpg, time=9836523
PID: 11504
Reason: executing service com.levipayne.liferpg/com.google.android.gms.tagmanager.TagManagerService
Load: 11.71 / 11.74 / 11.77
CPU usage from 129888ms to 0ms ago:
3.9% 1071/system_server: 2.4% user + 1.4% kernel / faults: 10368 minor 11 major
2% 2853/mpdecision: 0.2% user + 1.7% kernel
1.5% 1496/com.android.systemui: 1.1% user + 0.3% kernel / faults: 414 minor 11 major
1.2% 1966/com.android.phone: 1% user + 0.2% kernel / faults: 1141 minor 1 major
0.8% 9190/kworker/0:3: 0% user + 0.8% kernel
0.6% 374/rild: 0.5% user + 0% kernel / faults: 125 minor
0.6% 354/logd: 0.2% user + 0.3% kernel
0.5% 20278/adbd: 0% user + 0.5% kernel
0.5% 385/tpd_daemon: 0% user + 0.5% kernel
0.4% 375/surfaceflinger: 0.1% user + 0.3% kernel
0.4% 14939/logcat: 0.1% user + 0.3% kernel
0.2% 251/ueventd: 0.1% user + 0.1% kernel
0.2% 12737/com.amazon.kindle: 0.2% user + 0% kernel / faults: 989 minor 2 major
0.2% 2648/com.google.android.gms.persistent: 0.2% user + 0% kernel / faults: 617 minor
0.2% 4001/kworker/0:1: 0% user + 0.2% kernel
0.2% 7/kworker/u:0H: 0% user + 0.2% kernel
0.2% 373/servicemanager: 0.1% user + 0.1% kernel
0.2% 8242/kworker/u:1: 0% user + 0.2% kernel
0.2% 9642/kworker/u:5: 0% user + 0.2% kernel
0.2% 3/ksoftirqd/0: 0% user + 0.2% kernel
0.2% 247/mmcqd/0: 0% user + 0.2% kernel
0.2% 12625/com.amazon.mShop.android: 0.1% user + 0% kernel / faults: 3299 minor
0.2% 627/logcat: 0.1% user + 0.1% kernel
0.2% 32749/kworker/0:2H: 0% user + 0.2% kernel
0.2% 619/htc_ebdlogd: 0% user + 0.2% kernel
0.2% 30667/kworker/0:1H: 0% user + 0.2% kernel
0.1% 9334/kworker/u:4: 0% user + 0.1% kernel
0.1% 1991/android.process.acore: 0.1% user + 0% kernel / faults: 827 minor
0.1% 2636/com.android.bluetooth: 0.1% user + 0% kernel / faults: 1322 minor 10 major
0.1% 1477/wpa_supplicant: 0% user + 0% kernel
0.1% 2672/irq/33-cpubw_hw: 0% user + 0.1% kernel
0.1% 30448/com.amazon.mp3: 0.1% user + 0% kernel / faults: 7 minor
0% 470/zygote: 0% user + 0% kernel / faults: 8293 minor
0% 1468/MC_Thread: 0% user + 0% kernel
0% 2825/pnpmgr: 0% user + 0% kernel
0% 11777/com.ra3al.clock: 0% user + 0% kernel / faults: 1432 minor
0% 2619/com.vcast.mediamanager: 0% user + 0% kernel / faults: 1 minor
0% 12427/com.htc.sense.mms: 0% user + 0% kernel / faults: 1395 minor 9 major
0% 1470/RX_Thread: 0% user + 0% kernel
0% 5767/com.htc.sense.hsp: 0% user + 0% kernel / faults: 1176 minor
0% 11710/com.estrongs.android.pop: 0% user + 0% kernel / faults: 2 minor
0% 6662/com.google.android.gms: 0% user + 0% kernel / faults: 41 minor
0% 4150/com.asurion.android.verizon.vms: 0% user + 0% kernel / faults: 2 minor
0% 4537/com.verizon.messaging.vzmsgs: 0% user + 0% kernel / faults: 27 minor
0% 370/lmkd: 0% user + 0% kernel
0% 382/qmuxd: 0% user + 0% kernel / faults: 19 minor
0% 1469/TX_Thread: 0% user + 0% kernel
0% 1//init: 0% user + 0% kernel / faults: 13 minor
0% 275/flush-179:0: 0% user + 0% kernel
0% 521/mdss_fb0: 0% user + 0% kernel
0% 626/logcat: 0% user + 0% kernel
0% 2099/com.qualcomm.qti.tetherservice: 0% user + 0% kernel
0% 5407/com.google.android.googlequicksearchbox:search: 0% user + 0% kernel / faults: 13 minor
0% 6415/com.telecomsys.directedsms.android.SCG: 0% user + 0% kernel
0% 10832/com.android.settings: 0% user + 0% kernel / faults: 3 minor
0% 20224/com.nero.android.htc.sync: 0% user + 0% kernel
0% 8/migration/0: 0% user + 0% kernel
0% 34/kworker/u:1H: 0% user + 0% kernel
0% 267/jbd2/mmcblk0p39: 0% user + 0% kernel
0% 369/healthd: 0% user + 0% kernel
0% 458/netd: 0% user + 0% kernel / faults: 49 minor
0% 1790/com.google.android.wearable.app: 0% user + 0% kernel / faults: 554 minor
0% 2/kthreadd: 0% user + 0% kernel
0% 189/dbs_sync/0: 0% user + 0% kernel
0% 191/dbs_sync/1: 0% user + 0% kernel
0% 193/dbs_sync/2: 0% user + 0% kernel
0% 259/jbd2/mmcblk0p49: 0% user + 0% kernel
0% 355/vold: 0% user + 0% kernel
0% 383/netmgrd: 0% user + 0% kernel
0% 471/t

最佳答案

我遇到了完全相同的问题,并通过将依赖项 com.google.android.gms:play-services:9.0.0 替换为我在此处的答案中实际使用的依赖项来解决https://stackoverflow.com/a/37379662/4134617

我的 build.gradle 是这样结束的。

    dependencies {
compile project(':BaseGameUtils')
compile "com.google.android.gms:play-services-games:9.0.0"
compile "com.google.android.gms:play-services-plus:9.0.0"
compile "com.google.android.gms:play-services-ads:9.0.0"
compile 'com.google.firebase:firebase-core:9.0.0'
}

关于android - 应用程序有时会在从后台恢复后停止响应。 Firebase 应该受到指责吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37380974/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com