java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.awais.fine/com.example.awais.fine.FineMain}: android.os.NetworkOnMainThreadException

Stack Overflow | Humty | 4 months ago
  1. 0

    NetworkOnMainThreadException using Jsoup

    Stack Overflow | 4 months ago | Humty
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.awais.fine/com.example.awais.fine.FineMain}: android.os.NetworkOnMainThreadException
  2. 0

    How to parse html from parsed json data?

    Stack Overflow | 2 years ago | zerm
    android.os.NetworkOnMainThreadException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 15#86613375

    GitHub | 2 years ago | dasmikko
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ankerapps.xkcdmaterial/com.ankerapps.xkcdmaterial.MainActivity}: android.os.NetworkOnMainThreadException
  5. 0

    Android network runtime error

    Stack Overflow | 1 year ago | user3079441
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.raymondaggarwal.espnfantasy/com.example.raymondaggarwal.espnfantasy.MainActivity}: android.os.NetworkOnMainThreadException

  1. Agócs Tamás 10 times, last 8 months ago
  2. 0x60 1 times, last 2 months ago
  3. adawolfs 4 times, last 4 months ago
  4. Bassiuz 1 times, last 5 months ago
  5. jk 12 times, last 6 months ago
12 more registered users
21 unregistered visitors
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:1145)
    1 frame
  3. Java RT
    InetAddress.getAllByName
    1. java.net.InetAddress.lookupHostByName(InetAddress.java:385)
    2. java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
    3. java.net.InetAddress.getAllByName(InetAddress.java:214)
    3 frames
  4. Android
    HttpURLConnectionImpl.connect
    1. com.android.okhttp.internal.Dns$1.getAllByName(Dns.java:28)
    2. com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:216)
    3. com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:122)
    4. com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:292)
    5. com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:255)
    6. com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:206)
    7. com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345)
    8. com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:89)
    8 frames
  5. jsoup
    HttpConnection.get
    1. org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:563)
    2. org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:540)
    3. org.jsoup.helper.HttpConnection.execute(HttpConnection.java:227)
    4. org.jsoup.helper.HttpConnection.get(HttpConnection.java:216)
    4 frames
  6. com.example.awais
    FineMain.onCreate
    1. com.example.awais.fine.FineMain.test(FineMain.java:31)
    2. com.example.awais.fine.FineMain.onCreate(FineMain.java:25)
    2 frames
  7. Android Platform
    ActivityThread.performLaunchActivity
    1. android.app.Activity.performCreate(Activity.java:5318)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
    3 frames