Android P 兼容方法
TLS默认启用
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">182.254.116.117</domain>
<domain includeSubdomains="true">pingma.qq.com</domain>
</domain-config>
</network-security-config>android:networkSecurityConfig="@xml/mta_network_security_config"添加使用Apache HTTP client库
<uses-library android:name="org.apache.http.legacy" android:required="false"/>修改compileSdk和targetSdk
Last updated