java.lang.RuntimeException

Unable to pause activity {com.test/com.test.MainActivity}: android.os.NetworkOnMainThreadException

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 web23

  • via GitHub by tonypeng
    ,
  • Stack trace

    • java.lang.RuntimeException: Unable to pause activity {com.test/com.test.MainActivity}: android.os.NetworkOnMainThreadException at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:3722) at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3688) at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3662) at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3636)

    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

    ReichReich
    6 times, last one
    filipebatistafilipebatista
    Once,
    Agócs TamásAgócs Tamás
    12 times, last one
    winer222winer222
    3 times, last one
    Hiren AmaliyarHiren Amaliyar
    3 times, last one
    19 more bugmates