android28以后用http协议网络会报此错误;
解决:
在AndroidManifest.xml的application中添加
android:usesCleartextTraffic=“true”
java.io.IOException: Cleartext HTTP traffic to xxx.xxx.xxx.xxx not permitted
最新推荐文章于 2023-11-14 10:01:09 发布
android28以后用http协议网络会报此错误;
解决:
在AndroidManifest.xml的application中添加
android:usesCleartextTraffic=“true”