tencent cloud

文档移动推送

Compatibility with Android P

Download
聚焦模式
字号
最后更新时间: 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.

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈