android.os.NetworkOnMainThreadException

GitHub | ajdevy | 2 months ago
  1. 0

    Retrofit 2 error: NetworkOnMainThreadException

    Stack Overflow | 9 months ago | G-J
    android.os.NetworkOnMainThreadException
  2. 0

    Observable.fromAsync not emitting on the proper thread?

    Stack Overflow | 3 months ago | chubbsondubs
    android.os.NetworkOnMainThreadException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Call.cancel on main thread annoy StrictMode guard.

    GitHub | 3 years ago | pepyakin
    android.os.NetworkOnMainThreadException
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:1273)
    1 frame
  3. RoboVM
    OpenSSLSocketImpl.close
    1. com.android.org.conscrypt.OpenSSLSocketImpl.shutdownAndFreeSslNative(OpenSSLSocketImpl.java:1237)
    2. com.android.org.conscrypt.OpenSSLSocketImpl.close(OpenSSLSocketImpl.java:1232)
    2 frames
  4. okhttp3.internal
    Util.closeQuietly
    1. okhttp3.internal.Util.closeQuietly(Util.java:103)
    1 frame
  5. okhttp3.internal.connection
    StreamAllocation.streamFailed
    1. okhttp3.internal.connection.StreamAllocation.deallocate(StreamAllocation.java:265)
    2. okhttp3.internal.connection.StreamAllocation.streamFailed(StreamAllocation.java:312)
    2 frames
  6. okhttp3.internal.http
    RealInterceptorChain.proceed
    1. okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:139)
    2. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    3. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
    3 frames
  7. okhttp3.logging
    HttpLoggingInterceptor.intercept
    1. okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:212)
    1 frame
  8. okhttp3.internal.http
    RealInterceptorChain.proceed
    1. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    2. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
    2 frames