tencent cloud

Feedback

Compatibility with Android P

Last updated: 2019-06-26 09:55:14

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.

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support