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
猜你喜欢
转载自blog.csdn.net/qq_46070108/article/details/120588241
今日推荐
周排行