java.lang.RuntimeException: Unable to start service my.app.client.Client@34e18bec with Intent { act=my.app.client.LauncherActivity cmp=my.app.client/.Client (has extras) }: android.os.NetworkOnMainThreadException

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by ZunDubCore
, 10 months ago
Unable to start service my.app.client.Client@34e18bec with Intent { act=my.app.client.LauncherActivity cmp=my.app.client/.Client (has extras) }: android.os.NetworkOnMainThreadException
via GitHub by door43app
, 1 year ago
Unable to start service com.door43.translationstudio.service.BroadcastService@9b2aaa2 with Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.translationstudio.androidapp/com.door43.translationstudio.service.BroadcastService (has extras) }: java.lang.IllegalArgumentException
via GitHub by door43app
, 2 years ago
Unable to start service com.door43.translationstudio.service.BroadcastService@9b2aaa2 with Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.translationstudio.androidapp/com.door43.translationstudio.service.BroadcastService (has extras) }: java.lang.IllegalArgumentException
via GitHub by jsarabia1247
, 7 months ago
Unable to start service org.wycliffeassociates.translationrecorder.Recording.WavRecorder@177a6df5 with Intent { cmp=org.wycliffeassociates.translationrecorder/.Recording.WavRecorder (has extras) }: java.lang.IllegalArgumentException
via GitHub by brianmuse
, 2 years ago
Unable to start service intercom.intercomsdk.presentation.ChatHeadService@9676d97 with Intent { cmp=com.mypackage/intercom.intercomsdk.presentation.ChatHeadService (has extras) }: java.lang.IllegalStateException: PresentationManager
via GitHub by rkavalap
, 7 months ago
Unable to start service io.appium.settings.LocationService@21c91729 with Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=io.appium.settings/.LocationService (has extras) }: java.lang.SecurityException: Requires ACCESS_MOCK_LOCATION secure setting
java.lang.RuntimeException: Unable to start service my.app.client.Client@34e18bec with Intent { act=my.app.client.LauncherActivity cmp=my.app.client/.Client (has extras) }: android.os.NetworkOnMainThreadException
at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:110)
at libcore.io.IoBridge.connectErrno(IoBridge.java:137)
at libcore.io.IoBridge.connect(IoBridge.java:122)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:163)
at java.net.Socket.startupSocket(Socket.java:590)
at java.net.Socket.tryAllAddresses(Socket.java:128)
at java.net.Socket.(Socket.java:178)
at java.net.Socket.(Socket.java:150)
at out.Connection.connect(Connection.java:52)
at my.app.client.Client.onStartCommand(Client.java:96)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2915)
at android.app.ActivityThread.access$2100(ActivityThread.java:154)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1415)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5290)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:911)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
6 times, 8 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
5 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
39 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.