android.os.NetworkOnMainThreadException

Exception #2936888

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1167

  • via GitHub by DavidEdwards
    ,
  • Stack trace

    • android.os.NetworkOnMainThreadException at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1303) at com.android.org.conscrypt.Platform.blockGuardOnNetwork(Platform.java:300) at com.android.org.conscrypt.OpenSSLSocketImpl$SSLOutputStream.write(OpenSSLSocketImpl.java:808) at okio.Okio$1.write(SourceFile:78) at okio.AsyncTimeout$1.write(SourceFile:179) at okio.RealBufferedSink.flush(SourceFile:216) at okhttp3.internal.http2.Http2Writer.flush(SourceFile:121) at okhttp3.internal.http2.Http2Connection.newStream(SourceFile:239) at okhttp3.internal.http2.Http2Connection.newStream(SourceFile:205) at okhttp3.internal.http2.Http2Codec.writeRequestHeaders(SourceFile:105) at okhttp3.internal.http.CallServerInterceptor.intercept(SourceFile:43) at okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:92) at okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:67) at dae.evepi.network.LoggingInterceptor.intercept(SourceFile:20) at okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:92) at okhttp3.internal.connection.ConnectInterceptor.intercept(SourceFile:45) at okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:92) at okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:67) at okhttp3.internal.cache.CacheInterceptor.intercept(SourceFile:93) at okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:92) at okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:67) at okhttp3.internal.http.BridgeInterceptor.intercept(SourceFile:93) at okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:92) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(SourceFile:120) at okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:92) at okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:67) at okhttp3.RealCall.b(SourceFile:179) at okhttp3.RealCall.execute(SourceFile:63) at dae.evepi.network.Api.a(SourceFile:188) at dae.evepi.network.Api.getPlanetLayoutBlocking(SourceFile:713) at dae.evepi.network.Api$7.run(SourceFile:753) at java.lang.Thread.run(Thread.java:761)

    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

    Unknown visitor
    Unknown visitorOnce,
    Hiren AmaliyarHiren Amaliyar
    Once,
    Aria PahlavanAria Pahlavan
    8 times, last one
    pranavprakashpranavprakash
    6 times, last one
    Indri YunitaIndri Yunita
    6 times, last one
    38 more bugmates