tencent cloud

Compatibility with Android P

PDF
Focus Mode
Font Size
Last updated: 2024-01-16 17:39:39

TLS is enabled by default

Add the xg_network_security_config.xml file in the xml directory under the res directory with the following content:
<?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>
Add the following configuration to the application node of AndroidManifest:
android:networkSecurityConfig="@xml/xg_network_security_config"

Add and use the Apache HttpClient library

Add the following configuration to the application node of AndroidManifest:
<uses-library android:name="org.apache.http.legacy" android:required="false"/>

Modify compileSdk and targetSdk

Use compileSdkVersion 28 and targetSdkVersion 28 when compiling.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback