Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.RuntimeException: Unable to start service com.gyf.cactus.service.LocalService@fc1b36 with Intent #65

Open
daoxiaomianzi123 opened this issue May 10, 2024 · 1 comment

Comments

@daoxiaomianzi123
Copy link

小米14
android 14
出现2024-05-10 15:40:21.380 17093-17093/com.gyf.cactus.sample E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.gyf.cactus.sample, PID: 17093
java.lang.RuntimeException: Unable to start service com.gyf.cactus.service.LocalService@fc1b36 with Intent { cmp=com.gyf.cactus.sample/com.gyf.cactus.service.LocalService (has extras) }: java.lang.SecurityException: Unable to start service Intent { cmp=com.gyf.cactus.sample/com.gyf.cactus.service.RemoteService (has extras) }: Unable to launch app com.gyf.cactus.sample/10398 for service Intent { cmp=com.gyf.cactus.sample/com.gyf.cactus.service.RemoteService }: process is bad
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5046)
at android.app.ActivityThread.-$$Nest$mhandleServiceArgs(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2418)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:224)
at android.os.Looper.loop(Looper.java:318)
at android.app.ActivityThread.main(ActivityThread.java:8677)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
Caused by: java.lang.SecurityException: Unable to start service Intent { cmp=com.gyf.cactus.sample/com.gyf.cactus.service.RemoteService (has extras) }: Unable to launch app com.gyf.cactus.sample/10398 for service Intent { cmp=com.gyf.cactus.sample/com.gyf.cactus.service.RemoteService }: process is bad
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1954)
at android.app.ContextImpl.startForegroundService(ContextImpl.java:1917)
at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:841)
at com.gyf.cactus.ext.CactusExtKt.startInternService(CactusExt.kt:339)
at com.gyf.cactus.ext.CactusExtKt.startAndBindService(CactusExt.kt:325)
at com.gyf.cactus.ext.CactusExtKt.startAndBindService$default(CactusExt.kt:320)
at com.gyf.cactus.ext.CactusExtKt.startRemoteService(CactusExt.kt:290)
at com.gyf.cactus.service.LocalService.onStartCommand(LocalService.kt:131)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5028)
at android.app.ActivityThread.-$$Nest$mhandleServiceArgs(Unknown Source:0) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2418) 
at android.os.Handler.dispatchMessage(Handler.java:106) 
at android.os.Looper.loopOnce(Looper.java:224) 
at android.os.Looper.loop(Looper.java:318) 
at android.app.ActivityThread.main(ActivityThread.java:8677) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013) 

@ccchen92
Copy link

ccchen92 commented Jun 7, 2024

+1 我也遇到了,更新到澎湃OS就这样了。之前红米PAD是MIUI时没问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants