gpt4 book ai didi

android - 由于服务应用程序更新,我的应用程序被杀死

转载 作者:行者123 更新时间:2023-11-29 14:12:12 27 4
gpt4 key购买 nike

我在 logcat 中看到应用程序 google play 服务“com.google.android.gms”已更新。

因此, Activity 管理器会杀死所有使用播放服务的应用程序,即使它们在前台也是如此。

I/ActivityManager( 2076): Force stopping com.google.android.gms appid=10008 user=-1: installPackageLI
I/ActivityManager( 2076): Killing 4051:com.google.android.youtube/u0a68 (adj 902): stop com.google.android.gms
I/ActivityManager( 2076): Killing 2883:com.google.android.gms.persistent/u0a8 (adj 100): stop com.google.android.gms
W/ActivityManager( 2076): Scheduling restart of crashed service com.google.android.gms/.common.stats.GmsCoreStatsService in 1000ms
W/ActivityManager( 2076): Scheduling restart of crashed service com.google.android.gms/.backup.BackupTransportService in 10993ms
...
I/ActivityManager( 2076): Killing 9409:com.android.vending/u0a26 (adj 200): stop com.google.android.gms
D/ConnectivityService( 2076): ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ LISTEN id=8, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ], android.os.BinderProxy@a87ac95)
W/PackageManager( 2076): Trying to update system app code path from /data/app/com.google.android.gms-1 to /data/app/com.google.android.gms-2
W/PackageManager( 2076): Package com.google.android.gms desires unavailable shared library com.google.android.ble; ignoring!
W/PackageManager( 2076): Package com.google.android.gms desires unavailable shared library com.google.android.wearable; ignoring!
E/ConnectivityService( 2076): RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=8, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ]
W/PackageManager( 2076): Code path for com.google.android.gms changing from /data/app/com.google.android.gms-1 to /data/app/com.google.android.gms-2
W/PackageManager( 2076): Resource path for com.google.android.gms changing from /data/app/com.google.android.gms-1 to /data/app/com.google.android.gms-2
I/ActivityManager( 2076): Killing 2903:com.google.android.googlequicksearchbox:search/u0a27 (adj 500): stop com.google.android.gms
W/ActivityManager( 2076): Scheduling restart of crashed service com.google.android.googlequicksearchbox/com.google.android.apps.gsa.search.core.service.SearchService in 200950ms
I/ActivityManager( 2076): Killing 3711:com.google.android.gms.unstable/u0a8 (adj 900): stop com.google.android.gms
I/ActivityManager( 2076): Killing 3873:com.google.android.gms.ui/u0a8 (adj 904): stop com.google.android.gms
I/ActivityManager( 2076): Killing 2895:com.google.android.apps.maps/u0a64 (adj 902): stop com.google.android.gms
I/ActivityManager( 2076): Killing 3127:com.google.android.gms/u0a8 (adj 100): stop com.google.android.gms
W/ActivityManager( 2076): Scheduling restart of crashed service com.google.android.gms/.measurement.service.MeasurementBrokerService in 60945ms
W/ActivityManager( 2076): Scheduling restart of crashed service com.google.android.gms/.chimera.GmsBoundBrokerService in 210945ms

I/ActivityManager( 2076): Killing 9632:com.example.app/1000 (adj 0): stop com.google.android.gms
W/ActivityManager( 2076): Force removing ActivityRecord{7ea5f8a u0 com.example.app/.MyActivity t33}: app died, no saved state

我的应用“c​​om.example.app”最后被杀死。

避免更新依赖的应用

是否可以在我的应用程序处于前台期间避免此更新。它不应该经常发生,但就用户体验而言仍然不是那么好。

避免更新前台应用是否可以避免应用程序在前台自动更新 Playstore。这种情况经常发生在安卓用户身上。我讨厌在阅读报纸时报纸应用程序会随之更新。

类似,没有回答我的问题

Android/Google Play - Can an App Update While it Is Running

最佳答案

谷歌报告说他们不会解决这个问题,尽管他们也不会真正承认他们不会:https://issuetracker.google.com/issues/174418227

关于android - 由于服务应用程序更新,我的应用程序被杀死,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54667833/

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