不需要导入httpClient.jar.

只要添加高亮配置:
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"

useLibrary 'org.apache.http.legacy'

defaultConfig {
minSdkVersion 14
targetSdkVersion 23
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
}

packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
exclude 'META-INF/DEPENDENCIES'
}

}

相关文章:

  • 2021-10-29
  • 2022-12-23
  • 2021-12-09
  • 2021-04-06
  • 2021-06-29
  • 2021-07-07
  • 2021-08-25
猜你喜欢
  • 2022-12-23
  • 2021-12-27
  • 2021-05-29
  • 2022-12-23
  • 2021-04-02
  • 2021-04-14
  • 2021-05-17
相关资源
相似解决方案