Android Studio上报错java.net.UnknownServiceException: CLEARTEXT communication ** not permitted by

因为安全原因,Google针对Android 9.0 的应用程序,将要求默认使用加密连接。 因此在Android 9.0 使用HttpUrlConnection进行http请求会出现以下异常  W/System.err: java.io.IOException: Cleartext HTTP traffic to **** not permitted 使用OKHttp请求则出现 java.net.
相关文章
相关标签/搜索