MySQLNonTransientConnectionException: Could not create connection to database server

前端 未结 1 1626
无人及你
无人及你 2021-01-21 00:41

I am dealing with a strange problem connecting to my MySQL database on Amazon RDS using JDBC. I have two different Android phones on the same network running the same code. One

相关标签:
1条回答
  • 2021-01-21 00:50
    Caused by: android.os.NetworkOnMainThreadException
    

    You can't do network IO on the main thread. Move it to an AsyncTask or thread.

    0 讨论(0)
提交回复
热议问题