android.os.NetworkOnMainThreadException

This exception has no message.

Solutions on the web1209

  • via Coderanch by Chin Ginger, 6 months ago
    This exception has no message.
  • via GitHub by dasmikko
    , 1 year ago
    This exception has no message.
  • via GitHub by profOnno
    , 8 months ago
    This exception has no message.
  • Stack trace

    • android.os.NetworkOnMainThreadException at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1145) at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:163) at libcore.io.IoBridge.recvfrom(IoBridge.java:506) at java.net.PlainSocketImpl.read(PlainSocketImpl.java:489) at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46) at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:241) at java.io.InputStream.read(InputStream.java:162) at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:142) at java.io.BufferedInputStream.read(BufferedInputStream.java:227) at com.android.okhttp.internal.Util.readAsciiLine(Util.java:316) at com.android.okhttp.internal.http.RawHeaders.fromBytes(RawHeaders.java:324) at com.android.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:135) at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:644) at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:347) at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296) at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:503) at com.kingouser.com.f.l.b(Unknown Source) at com.kingouser.com.service.b.onReceive(Unknown Source) at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:768) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5102) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    3 times, 2 weeks ago
    Once, 1 year ago
    8 times, 1 year ago
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    38 more bugmates