2

Exception android.app.RemoteServiceException$CannotDeliverBroadcastException: can't deliver broadcast

at android.app.ActivityThread.throwRemoteServiceException (ActivityThread.java:1980)

at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException

at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2242) at android.os.Handler.dispatchMessage (Handler.java:106) at android.os.Looper.loopOnce (Looper.java:201)`` at android.os.Looper.loop (Looper.java:288)

at android.app.ActivityThread.main (ActivityThread.java:7898) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:936)

1 Answers1

0

If you are still struggling with this, please take a look at this SO thread

CannotDeliverBroadcastException only on Pixel devices running Android 12

The issue has been confirmed by the AOSP project

Google Issue tracker

In my case the crashes were only on Samsung devices running Android 13(with a little bit different line numbers in the stack trace). Might be due to not having the patch released yet. The proposed solution with Thread.UncaughtExceptionHandler seems to be the only way. It is also the suggested workaround from AOSP team

Google issue tracker dev confirmation

gnubash
  • 11
  • 1
  • 3