-
Notifications
You must be signed in to change notification settings - Fork 82
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
启动服务后无限停止运行 三星s8 9.0 #9
Comments
非常抱歉,我忘记修改包名了,sorroy |
没事,一般Unable to start service 的时候,需要检查下manifest中配置的是否有问题。 |
你好,部分手机上会遇到这种错误 |
你的目标API版本是不是大于26? |
@ShihooWang 目标api=28,总会提示无响应,每次出现都会出这个log |
我也出现了这个问题怎么修改包名? |
java.lang.RuntimeException: Unable to start service com.shihoo.daemon.WatchDogService@d9f643d with Intent { cmp=com.meadding.shopping/com.shihoo.daemon.WatchDogService }: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Class.getName()' on a null object reference
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3904)
at android.app.ActivityThread.access$1700(ActivityThread.java:237)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7045)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Class.getName()' on a null object reference
at com.shihoo.daemon.WatchDogService.onStart(WatchDogService.java:120)
at com.shihoo.daemon.WatchDogService.onStartCommand(WatchDogService.java:129)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3885)
at android.app.ActivityThread.access$1700(ActivityThread.java:237)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7045)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
The text was updated successfully, but these errors were encountered: