java.lang.IllegalStateException:app is in background uid UidRecord
来源:互联网 发布:中央网络问政平台 编辑:程序博客网 时间:2024/05/29 12:50
bugly上出了这个错误,而且都是Android 8.0上的,心里隐约觉得又出新幺蛾子了。
查了下大概是8.0以上不允许创建后台服务了
判断下版本,startForeground(1, new Notification())放在oncreate()里就行。
好了,问题解决。
阅读全文
0 0
- java.lang.IllegalStateException:app is in background uid UidRecord
- java.lang.IllegalStateException: TimerTask is scheduled already
- 异常:java.lang.IllegalStateException: EntityManager is closed
- java.lang.IllegalStateException: aidl is missing
- okhttp java.lang.IllegalStateException: cache is closed
- java.lang.IllegalStateException: Driver for test database type [H2] is not available in the classpat
- java.lang.IllegalStateException: Underflow in restore
- java.lang.IllegalStateException: Already in the pool!
- java.lang.IllegalStateException: Underflow in restore
- Android How to Check if the App is in Background
- java.lang.SecurityException: caller uid 10039 is different than the authenticator's uid
- java.lang.SecurityException: caller uid 10039 is different than the authenticator's uid。
- Android 报错 java.lang.SecurityException: caller uid 10431 is different than the authenticator's uid
- java.lang.IllegalStateException: Argument [RedirectAttributes] is of type Model
- java.lang.IllegalStateException: TimerTask is scheduled already问题分析
- java.lang.IllegalStateException: FragmentManager is already executing transactions
- nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map ***
- java.lang.IllegalStateException: buildToolsVersion is not specified.解决办法
- MySQL 读写分离
- LC-Reverse String
- input多图上传加多图显示
- Curator工具类之ZKPaths。
- 如何用命令修改oracle的用户的用户名
- java.lang.IllegalStateException:app is in background uid UidRecord
- ShaderWeaver使用教程-基本操作介绍
- c#进行http请求
- SQL Server 2016新功能--Temporal Table--快速恢复误操作
- SDUT-3376 数据结构实验之查找四:二分查找
- FFmpeg之AVFrame
- linux命令
- hibernate
- 高可用Hadoop平台-Hue In Hadoop