错误信息“not allowed to start service intent app is in background uid uidrecord”表明,当应用程序处于后台时,系统不允许其启动服务。这通常是因为Android系统为了优化电池使用和提高用户体验,对后台应用的行为进行了限制。 2. 可能导致错误的情境或行为 后台启动服务:当应用不在前台时尝试启动服务。 目标SDK版本...
=ActivityManager.APP_START_MODE_NORMAL) {//...UidRecord uidRec =mAm.mActiveUids.get(r.appInfo.uid);//此处就是不允许运行服务返回的原因"app is in background"//找到了原因就在这里returnnewComponentName("?", "app is in background uid " +uidRec);...
firebase Not allowed to start service Intent app is in background uid UidRecord java.lang.RuntimeException:Unableto start receiver com.google.firebase.iid.FirebaseInstanceIdReceiver:java.lang.IllegalStateException:Notallowed to start service Intent{act=com.google.firebase.MESSAGING_EVENTpkg=com.games37....
Caused by java.lang.IllegalStateException Not allowed to start service Intent { cmp=com.x.x.x/.x.x.xService }: app is in background uid UidRecord{7d9f297 u0a184 SVC bg:+15m25s900ms idle change:uncached procs:3 seq(0,0,0)} Android 8.0 的应用尝试在不允许其创建后台服务的情况下使用...
java.lang.IllegalStateException: Not allowed to start service Intent { cmp=com.xxx.xxx/.service.SocketService }: app is in background uid UidRecord{1304d26 u0a289 RCVR bg:+52m38s999ms idle change:uncached procs:1 seq(0,0,0)}
Not allowed to start service Intent { act=com.google.android.gms.measurement.UPLOAD cmp=org.myappname.app/com.google.android.gms.measurement.AppMeasurementService (has extras) }: app is in background uid UidRecord{90e48a1 u0a147 RCVR bg:+21m32s364ms idle change:uncached procs:1 seq...
Fatal Exception: android.app.BackgroundServiceStartNotAllowedException: Not allowed to start service Intent { cmp=com.app/com.guichaguri.trackplayer.service.MusicService }: app is in background uid UidRecord{cbd4b5 u0a582 CAC bg:+1m7s183ms idle change:cached procs:0 seq(0,0,0)} ...
java.lang.IllegalStateException: Not allowed to start service Intent { act=com.google.android.exoplayer.downloadService.action.INIT cmp=app.podcast.cosmos/io.iftech.android.podcast.player.remote.ffcache.FFDownloadService }: app is in background uid UidRecord{8df726c u0a474 RCVR bg:+1h7m27s763...
有一种解决方法可以避免应用程序崩溃。如果重要性级别低于ActivityManager.RunningAppProcessInfo.IMPORTANCE_...
(has extras) }: app is in background uid UidRecord{2dc63ba u0a53 RCVR idle change:idle|uncached procs:0 seq(0,0,0)}05-09 01:25:24.465 2187 2187 E AndroidRuntime: at android.app.ActivityThread.handleReceiver(ActivityThread.java:4384)05-09 01:25:24.465 2187 2187 E AndroidRuntime: at...