java.lang.RuntimeException: Unable to start activity ComponentInfo{com.avian.apps.avian/com.avian.apps.avian.LoginActivity}: android.os.NetworkOnMainThreadException

Stack Overflow | Agoeng Liu | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Failed to remote server SQL SERVER using jdts

    Stack Overflow | 9 months ago | Agoeng Liu
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.avian.apps.avian/com.avian.apps.avian.LoginActivity}: android.os.NetworkOnMainThreadException
  2. 0

    Android SOAP wsdl

    Stack Overflow | 4 years ago | user2742861
    android.os.NetworkOnMainThreadException
  3. 0

    Android HttpGet request

    Stack Overflow | 4 years ago | user2576008
    android.os.NetworkOnMainThreadException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    HTTPclient inputstream crashes android app

    Stack Overflow | 3 years ago | Jan Manaloto
    java.lang.RuntimeException: Unable to start activity ComponentInfo{android.janime/android.janime.MainActivity}: android.os.NetworkOnMainThreadException

  1. justCodeit 7 times, last 2 months ago
  2. Adrien 4 times, last 3 months ago
  3. Indri Yunita 6 times, last 1 month ago
  4. bluebunnty 2 times, last 5 months ago
  5. dealloc 2 times, last 5 months ago
16 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:1118)
    1 frame
  3. Android
    IoBridge.connect
    1. libcore.io.BlockGuardOs.connect(BlockGuardOs.java:84)
    2. libcore.io.IoBridge.connectErrno(IoBridge.java:131)
    3. libcore.io.IoBridge.connect(IoBridge.java:116)
    3 frames
  4. Java RT
    Socket.connect
    1. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
    2. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459)
    3. java.net.Socket.connect(Socket.java:847)
    3 frames
  5. jTDS
    Driver.connect
    1. net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:288)
    2. net.sourceforge.jtds.jdbc.SharedSocket.<init>(SharedSocket.java:251)
    3. net.sourceforge.jtds.jdbc.JtdsConnection.<init>(JtdsConnection.java:331)
    4. net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184)
    4 frames
  6. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(DriverManager.java:175)
    2. java.sql.DriverManager.getConnection(DriverManager.java:209)
    2 frames
  7. com.avian.apps
    LoginActivity.onCreate
    1. com.avian.apps.avian.ConnectionClass.getConnection(ConnectionClass.java:25)
    2. com.avian.apps.avian.LoginActivity.onCreate(LoginActivity.java:36)
    2 frames
  8. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5117)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2150)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2236)
    5. android.app.ActivityThread.access$600(ActivityThread.java:145)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1238)
    7. android.os.Handler.dispatchMessage(Handler.java:99)
    8. android.os.Looper.loop(Looper.java:137)
    9. android.app.ActivityThread.main(ActivityThread.java:5099)
    9 frames
  9. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  10. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:803)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:570)
    2 frames
  11. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame