android 请求接口报错 org.apache.http.conn.HttpHostConnectException: Connection to http://192.168.1.90:9090 refused

No Network Security Config specified, using platform default
I/System.out: org.apache.http.conn.HttpHostConnectException: Connection to http://192.168.1.90:9090 refused

请求不到接口,解决办法:

在 AndroidManifest.xml 中添加 

<uses-permission android:name="android.permission.INTERNET"/>

 

猜你喜欢

转载自www.cnblogs.com/yuanqt/p/10719993.html
0条评论
添加一条新回复