欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  移动技术

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

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

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

在 androidmanifest.xml 中添加 

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

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