MySQLNonTransientConnectionException: Could not create connection to database server

前端 未结 1 1890
清酒与你
清酒与你 2021-01-21 00:06

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:54
    Caused by: android.os.NetworkOnMainThreadException
    

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

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