Skip to content

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

@fashioncj

Description

@fashioncj

编译版本为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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions