android 请求接口报错 org.apache.http.conn.HttpHostConnectException: Connection to http://192.168.1.90:9090 refused
程序员文章站
2022-05-21 17:34:55
No Network Security Config specified, using platform defaultI/System.out: org.apache.http.conn.HttpHostConnectException: Connection to http://192.168. ......
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"/>