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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by maxme
, 1 year ago
This exception has no message.
via GitHub by Valodim
, 2 years ago
This exception has no message.
android.os.NetworkOnMainThreadException:
at android.os.Parcel.readException(Parcel.java:1642)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:146)
at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:692)
at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1111)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:948)
at org.wordpress.android.util.MediaUtils.downloadExternalMedia(MediaUtils.java:200)
at org.wordpress.android.ui.posts.EditPostActivity.addMedia(EditPostActivity.java:1488)
at org.wordpress.android.ui.posts.EditPostActivity.fetchMedia(EditPostActivity.java:1412)
at org.wordpress.android.ui.posts.EditPostActivity.onActivityResult(EditPostActivity.java:1592)
at android.app.Activity.dispatchActivityResult(Activity.java:6490)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3794)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3841)
at android.app.ActivityThread.access$1400(ActivityThread.java:154)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1440)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:5526)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

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