RemoteServiceException Error

允我心安 提交于 2019-12-03 08:40:49

Im not sure if my problem is the exact same problem as this one. I started getting crash reports on google play just like this. For example

android.app.RemoteServiceException: 
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1881)
  at android.os.Handler.dispatchMessage (Handler.java:105)
  at android.os.Looper.loop (Looper.java:164)
  at android.app.ActivityThread.main (ActivityThread.java:6938)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)

I started seeing this around build 189 and did not see this error before 185

So this github checkin still did not have it

And this github checkin had the bug for sure

I was did make some changes related to a foreground service so I am suspecting my issue relates to

Issue Tracker: Context.startForegroundService() did not then call Service.startForeground

Context.startForegroundService() did not then call Service.startForeground()

---- EDIT ----

My issue did turn out to be that I was calling startForegroundService which was not needed because my app was not in the background when it did this.

For sure the issue has been resolved by this commit

There is insufficient information to diagnose this properly.

However, this is an "internal" exception that gets thrown when the looper attempts to handle a "SCHEDULE_CRASH" message. I think that happens when another activity calls ActivityThread.ApplicationThread.scheduleCrash ... but this is not at all clear from the Android source code.

I am guessing that this a result some native application "bailing out". There is typically an app specific message to go with the exception, but it seems to be missing in your case.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!