android 请求接口报错 org.apache.http.conn.HttpHostConnectException: Connection to http://192.168.1.90:9090 refused
程序员文章站
2022-11-27 14:57:40
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"/>
上一篇: es6 字符串的扩展和数值的扩展
下一篇: 用穿越火线快速入门php面向对象