Android 10 踩坑实录 👉 2020-01-20

时间:2021-07-18 18:05:00

1.https联网限制

Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->setUseSessionTickets(Z)V (light greylist, reflection)
Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->setHostname(Ljava/lang/String;)V (light greylist, reflection)
Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->getAlpnSelectedProtocol()[B (light greylist, reflection)
Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->setAlpnProtocols([B)V (light greylist, reflection)

W/123: null end with: ERROR ]---===---[  Exception : CLEARTEXT communication to dldir1.qq.com not permitted by network security policy

Fixed ?? android:usesCleartextTraffic="true"

2.安装APP时提示:安装包有异常,无法安装

https://blog.csdn.net/lsldd/article/details/89962353
??
gradle.properties add android.injected.testOnly=false