1农渊、閃退仅醇,報(bào)錯(cuò)如下
Java.lang.NoClassDefFoundError: Failed resolutionof:Lorg/apache/http/conn/scheme/SchemeRegistry;
解決方案:
在AndroidManifest.xml文件的application標(biāo)簽里面加入
<uses-library android:name="org.apache.http.legacy" android:required="false" />
2宣肚、Android 9 Pie:http及https的網(wǎng)絡(luò)連接問(wèn)題
解決方案:
(1)在res的xml目錄下溜哮,新建一個(gè)xml文件(名稱(chēng)自定義,如:network_security_config.xml),內(nèi)容如下:
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true" />
</network-security-config>
(2)在manifest清單文件配置application:
<application
...
android:networkSecurityConfig="@xml/network_security_config"
...
/>
喝水不忘挖井人:https://blog.csdn.net/mysimplelove/article/details/84063571
作者:QQ蔓
鏈接:http://www.reibang.com/p/9415f83df810
來(lái)源:簡(jiǎn)書(shū)
簡(jiǎn)書(shū)著作權(quán)歸作者所有屎蜓,任何形式的轉(zhuǎn)載都請(qǐng)聯(lián)系作者獲得授權(quán)并注明出處痘昌。