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

GitHub | ma3axaka007 | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Cant run Androrat

    GitHub | 9 months ago | ma3axaka007
    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
  2. 0

    GitHub comment 9#247465555

    GitHub | 8 months ago | stratrik
    android.os.NetworkOnMainThreadException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Java - Android - Main thread exception uploading by FTP

    Stack Overflow | 1 year ago | Gosdi
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=null} to activity {com.ignistudios.photosharing/com.ignistudios.photosharing.MainActivity}: android.os.NetworkOnMainThreadException

  1. Hiren 6 times, last 7 days ago
  2. justCodeit 7 times, last 3 months ago
  3. Adrien 4 times, last 4 months ago
  4. Indri Yunita 6 times, last 2 months ago
  5. bluebunnty 2 times, last 6 months ago
17 more registered users
21 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. android.os.NetworkOnMainThreadException

    No message provided

    at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork()
  2. Android Platform
    StrictMode$AndroidBlockGuardPolicy.onNetwork
    1. android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1147)
    1 frame
  3. Android
    IoBridge.connect
    1. libcore.io.BlockGuardOs.connect(BlockGuardOs.java:110)
    2. libcore.io.IoBridge.connectErrno(IoBridge.java:137)
    3. libcore.io.IoBridge.connect(IoBridge.java:122)
    3 frames
  4. Java RT
    Socket.<init>
    1. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
    2. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:163)
    3. java.net.Socket.startupSocket(Socket.java:590)
    4. java.net.Socket.tryAllAddresses(Socket.java:128)
    5. java.net.Socket.<init>(Socket.java:178)
    6. java.net.Socket.<init>(Socket.java:150)
    6 frames
  5. out
    Connection.connect
    1. out.Connection.connect(Connection.java:52)
    1 frame
  6. my.app.client
    Client.onStartCommand
    1. my.app.client.Client.onStartCommand(Client.java:96)
    1 frame
  7. Android Platform
    ActivityThread.main
    1. android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2915)
    2. android.app.ActivityThread.access$2100(ActivityThread.java:154)
    3. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1415)
    4. android.os.Handler.dispatchMessage(Handler.java:102)
    5. android.os.Looper.loop(Looper.java:135)
    6. android.app.ActivityThread.main(ActivityThread.java:5290)
    6 frames
  8. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  9. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:911)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)
    2 frames