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

时间:2024-06-16 23:37:32

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