remoteserviceexception - Context.startForegroundService() 没有在 Vivo 所有具有 8.0 版操作系统的模型上调用 Service.startForeground()
问题描述
仅在使用 onCreate/OnStartCommand 中的通知通道进行所有必要的建议更改后,才会在所有 Vivo 模型上崩溃
Fatal Exception: android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground()
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1823)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:192)
at android.app.ActivityThread.main(ActivityThread.java:6671)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:818)
> Blockquote
解决方案
推荐阅读
- r - 如何在给定条件下查找分组数据框中的行数
- obiee - OBIEE 11g - 如何从数据表创建交叉表?
- karate - 空手道:从场景大纲中的背景访问变量
- mysql - GRANT 命令在 MySQL 8.0.25 上不起作用
- python - 尽管安装了所需的库(在 ubuntu 上使用 python3),但 Pyautogui 函数 LocateOnScreen 仍然出错。请帮帮我
- python - Manim 社区版,使用 ThreeDAxes 不适合 ThreeDScene 的对象
- javascript - “ReferenceError:未定义命令”
- c# - EF6 更新 DBContext 类以获取新密码
- sql - 使用 REFERENCES 创建两个表
- html - 带有 UTM 和 gclid 的 URL 看起来如何?