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