android.os.NetworkOnMainThreadException

github.com | 5 months ago
  1. 0

    content · GitHub

    github.com | 5 months ago
    android.os.NetworkOnMainThreadException
  2. 0

    Posting Retrofit to Rest server in Android

    Stack Overflow | 3 years ago | Omar.Ebrahim
    android.os.NetworkOnMainThreadException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Android application works in emulator but failed in device

    Stack Overflow | 2 years ago | arya maharta
    android.os.NetworkOnMainThreadException
  5. 0

    Demo运行报错

    GitHub | 1 year ago | ZhaoKaiQiang
    android.os.NetworkOnMainThreadException

  1. adawolfs 1 times, last 5 months ago
  2. jk 7 times, last 5 months ago
  3. Diogo Jaym 1 times, last 6 months ago
  4. bayukresno 3 times, last 8 months ago
  5. MyInnos 3 times, last 8 months ago
13 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:1145)
    1 frame
  3. Android
    IoBridge.recvfrom
    1. libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:163)
    2. libcore.io.IoBridge.recvfrom(IoBridge.java:506)
    2 frames
  4. Java RT
    BufferedInputStream.read
    1. java.net.PlainSocketImpl.read(PlainSocketImpl.java:489)
    2. java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
    3. java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:241)
    4. java.io.InputStream.read(InputStream.java:162)
    5. java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:142)
    6. java.io.BufferedInputStream.read(BufferedInputStream.java:227)
    6 frames
  5. Android
    HttpURLConnectionImpl.getResponseCode
    1. com.android.okhttp.internal.Util.readAsciiLine(Util.java:316)
    2. com.android.okhttp.internal.http.RawHeaders.fromBytes(RawHeaders.java:324)
    3. com.android.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:135)
    4. com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:644)
    5. com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:347)
    6. com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)
    7. com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:503)
    7 frames
  6. com.kingouser.com
    b.onReceive
    1. com.kingouser.com.f.l.b(Unknown Source)
    2. com.kingouser.com.service.b.onReceive(Unknown Source)
    2 frames
  7. Android Platform
    ActivityThread.main
    1. android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:768)
    2. android.os.Handler.handleCallback(Handler.java:733)
    3. android.os.Handler.dispatchMessage(Handler.java:95)
    4. android.os.Looper.loop(Looper.java:136)
    5. android.app.ActivityThread.main(ActivityThread.java:5102)
    5 frames
  8. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  9. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
    2 frames