java.lang.RuntimeException: Error receiving broadcast Intent

qq_30134495 2024-05-07 15:46:25
05-07 13:54:26.581 28257 28257 E AndroidRuntime: FATAL EXCEPTION: main
05-07 13:54:26.581 28257 28257 E AndroidRuntime: Process: fonelab.mirror.recorder, PID: 28257
05-07 13:54:26.581 28257 28257 E AndroidRuntime: java.lang.RuntimeException: Error receiving broadcast Intent { act=com.aoko.fonelab.mirror.notify flg=0x10 (has extras) } in com.fonelab.lib.mirror.MediaProjectionService$b@984d848
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$android-app-LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1929)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at android.app.LoadedApk$ReceiverDispatcher$Args$$ExternalSyntheticLambda0.run(Unknown Source:2)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:942)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:99)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:226)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:313)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:8762)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: Caused by: android.os.NetworkOnMainThreadException
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1667)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:115)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at java.net.SocketOutputStream.write(SocketOutputStream.java:144)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at w4.g.a(Unknown Source:4)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at fonelab.mirror.recorder.activity.a.a(:1)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at g0.j$a.a(Unknown Source:2)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at g0.i.b(:1)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at g0.h.e(Unknown Source:3)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at g0.h.a(Unknown Source:3)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at g0.j.a(Unknown Source:4)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at com.fonelab.lib.mirror.MediaProjectionService$b.a(:2)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at com.fonelab.lib.mirror.MediaProjectionService$b.onReceive(:4)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$android-app-LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1919)
05-07 13:54:26.581 28257 28257 E AndroidRuntime: 	... 9 more

 

 

这是广播出错吗,有没有大哥帮忙看下

...全文
1150 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复

是不是设置的flag有问题

80,392

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧