How to fix: android.app.RemoteServiceException without any message (not related to Bad Notification or Broadcast) How to fix: android.app.RemoteServiceException without any message (not related to Bad Notification or Broadcast) android android

How to fix: android.app.RemoteServiceException without any message (not related to Bad Notification or Broadcast)


if you have started service using startforgroundservice()

then you have to call startforground() in service oncreate by following the google instructions for oreo.


It might be very late, but do you have content providers in your app?If they are, are they properly declared in the manifest?I saw ActivityThread class code for API 26. The line where the error happens is 1813.

 case INSTALL_PROVIDER:                handleInstallProvider((ProviderInfo) msg.obj);                break;

Following the code shows that the app is not able to publish the content provider and crashing there.

 try {        ActivityManager.getService().publishContentProviders(            getApplicationThread(), results);    } catch (RemoteException ex) {        throw ex.rethrowFromSystemServer();    }

Late!! but might help others to debug their case.