在Android9.0系统上进行软件测试,出现错误异常Didn't find class "org.apache.http.client.methods.HttpPost" on path: DexPathList[[zip file "/data/app/com.seaclouds.××××××-sry7fhYL6L_ZIuYAuBCiTw==/base.apk"],nativeLibraryDirectories=[/data/app/com.seaclouds.××××××-sry7fhYL6L_ZIuYAuBCiTw==/lib........一大堆错误,主要还是9.0系统不兼容导致的,9.0默认不支持http.client的类了
在项目的AndroidManifest.xmlapplication添加以下代码

android:usesCleartextTraffic="true"
<uses-library android:name="org.apache.http.legacy" android:required="false" />

Didn't find class "org.apache.http.client.methods.HttpPost"
重新运行就可以了

相关文章:

  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2021-12-10
  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
猜你喜欢
  • 2021-09-24
  • 2022-12-23
  • 2021-09-01
  • 2021-11-05
  • 2021-11-02
  • 2021-09-02
  • 2022-12-23
相关资源
相似解决方案