android.os.NetworkOnMainThreadException: This exception has no message.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

android.os.NetworkOnMainThreadException:
at com.android.org.conscrypt.Platform.blockGuardOnNetwork(Platform.java:300)
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)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
2 times, 3 weeks ago
Once, 4 months ago
8 times, 11 months ago
6 times, 1 year ago
39 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.