Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android P网络请求1003错误解决方法 #33

Open
fashioncj opened this issue Nov 12, 2018 · 0 comments
Open

Android P网络请求1003错误解决方法 #33

fashioncj opened this issue Nov 12, 2018 · 0 comments

Comments

@fashioncj
Copy link

编译版本为28以后,禁用了http连接。okhttpfinal会显示错误1003,这个时候需要https://developer.android.com/training/articles/security-config 来添加一个文件来允许使用http连接。

--
错误:java.net.UnknownServiceException: CLEARTEXT communication to xxxx not permitted by network security policy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant