Android JDBC connection results in ctahttp exception

后端 未结 2 971
既然无缘
既然无缘 2021-01-13 14:59

Im currently trying to establish a connection from my Android app to a MySQL server running on my raspberry pi.

I added the library to android studio correctly by ad

2条回答
  •  长情又很酷
    2021-01-13 16:04

    As I encountered the same message once, I also was misled by it firstly. However, it turned out that you can not open a Socket or other network connection on the main thread (see https://developer.android.com/training/basics/network-ops/connecting#intro-net-ops). This may also be the problem in your case.

    This message itself only seems to be an information for testing purposes as vhamon pointed out.

提交回复
热议问题