java.lang.RuntimeException: Unable to start activity ComponentInfo{mmbookhub.com.mmbookhub/mmbookhub.com.mmbookhub.ContributeActivity}: android.os.NetworkOnMainThreadException

Stack Overflow | Wai Yan Hein | 4 months ago
  1. 0

    Error in Retrofit GET request in Android

    Stack Overflow | 4 months ago | Wai Yan Hein
    java.lang.RuntimeException: Unable to start activity ComponentInfo{mmbookhub.com.mmbookhub/mmbookhub.com.mmbookhub.ContributeActivity}: android.os.NetworkOnMainThreadException
  2. 0

    Android SOAP wsdl

    Stack Overflow | 3 years ago | user2742861
    android.os.NetworkOnMainThreadException
  3. 0

    GitHub comment 1073#139097483

    GitHub | 1 year ago | Solidary
    ava.lang.RuntimeException: Unable to start activity ComponentInfo{com.tcheps/com.tcheps.activities.ProblemsFeedActivity}: android.os.NetworkOnMainThreadException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android HttpGet request

    Stack Overflow | 3 years ago | user2576008
    android.os.NetworkOnMainThreadException
  6. 0

    how to call php script from android application

    Stack Overflow | 3 years ago | Nedimo
    android.os.NetworkOnMainThreadException

  1. bluebunnty 2 times, last 1 week ago
  2. dealloc 2 times, last 2 weeks ago
  3. Alexandru Popa 3 times, last 3 weeks ago
  4. filpgame 1 times, last 1 month ago
  5. jk 5 times, last 7 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:1133)
    1 frame
  3. Android
    IoBridge.connect
    1. libcore.io.BlockGuardOs.connect(BlockGuardOs.java:84)
    2. libcore.io.IoBridge.connectErrno(IoBridge.java:144)
    3. libcore.io.IoBridge.connect(IoBridge.java:112)
    3 frames
  4. Java RT
    Socket.connect
    1. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
    2. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459)
    3. java.net.Socket.connect(Socket.java:842)
    3 frames
  5. okhttp3.internal
    AndroidPlatform.connectSocket
    1. okhttp3.internal.AndroidPlatform.connectSocket(AndroidPlatform.java:55)
    1 frame
  6. okhttp3.internal.io
    RealConnection.connect
    1. okhttp3.internal.io.RealConnection.connectSocket(RealConnection.java:185)
    2. okhttp3.internal.io.RealConnection.buildConnection(RealConnection.java:170)
    3. okhttp3.internal.io.RealConnection.connect(RealConnection.java:111)
    3 frames
  7. okhttp3.internal.http
    HttpEngine.sendRequest
    1. okhttp3.internal.http.StreamAllocation.findConnection(StreamAllocation.java:187)
    2. okhttp3.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:123)
    3. okhttp3.internal.http.StreamAllocation.newStream(StreamAllocation.java:93)
    4. okhttp3.internal.http.HttpEngine.connect(HttpEngine.java:296)
    5. okhttp3.internal.http.HttpEngine.sendRequest(HttpEngine.java:248)
    5 frames
  8. okhttp3
    RealCall.execute
    1. okhttp3.RealCall.getResponse(RealCall.java:243)
    2. okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:201)
    3. okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)
    4. okhttp3.RealCall.execute(RealCall.java:57)
    4 frames
  9. retrofit2
    ExecutorCallAdapterFactory$ExecutorCallbackCall.execute
    1. retrofit2.OkHttpCall.execute(OkHttpCall.java:174)
    2. retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall.execute(ExecutorCallAdapterFactory.java:89)
    2 frames
  10. mmbookhub.com.mmbookhub
    ContributeActivity.onCreate
    1. mmbookhub.com.mmbookhub.ContributeActivity.makeRetrofitRequest(ContributeActivity.java:505)
    2. mmbookhub.com.mmbookhub.ContributeActivity.onCreate(ContributeActivity.java:84)
    2 frames
  11. Android Platform
    ActivityThread.performLaunchActivity
    1. android.app.Activity.performCreate(Activity.java:5133)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
    3 frames