Android在网络请求的时候,出现了Cleartext HTTP traffic to 192.168.0.110 not permitted
,不允许HTTP明文流量。
在AndroidManifest.xml
中的application标签中声明android:usesCleartextTraffic="true"
可以使用HTTP明文流量,
但是再次运行的时候,出现了socket failed: EPERM (Operation not permitted)
,解决办法:删除模拟器的APP,然后再次启动运行,就可以了。
socket failed: EPERM (Operation not permitted)-Cleartext HTTP traffic to 192.168.0.110 not permitted
最新推荐文章于 2022-07-12 09:28:35 发布