我的应用因服务应用更新而被杀死 [英] My app gets killed due to Service App update

查看:308
本文介绍了我的应用因服务应用更新而被杀死的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在logcat中看到Google Play服务"com.google.android.gms"已更新.

I see in the logcat that the app google play services "com.google.android.gms" gets updated.

因此,活动管理器将杀死所有使用播放服务的应用程序,即使它们位于前台.

Therefore the activity manager kills all applications which use the play services even if they are in the foreground.

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

我的应用"com.example.app"最后被杀死.

My app "com.example.app" gets killed last.

避免更新依赖的应用程序

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

Is it possible to avoid this update during my app is in foreground. It shouldn't happen often but still is not that nice regarding the user experience.

避免更新前台应用是否可以避免应用程序在前台运行时自动进行Playstore更新.这种情况经常发生在android用户上.我讨厌阅读报纸,然后报纸应用程序会更新.

Avoid update of foreground app Is it possible to avoid the automatic playstore update of an app while it is in foreground. This happens quite often to android users. I hate when I am reading the newspaper and the newspaper app gets updated then.

类似,没有回答我的问题

Android/Google Play-可以运行时的应用更新

推荐答案

Google报告他们不会解决此问题,尽管他们也不会真正承认不会这样做: https://issuetracker.google.com/issues/174418227

Google reported that they won't fix the issue, though they also won't really admit that they won't: https://issuetracker.google.com/issues/174418227

这篇关于我的应用因服务应用更新而被杀死的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆