【问题标题】:Android Studio not able to find org.apache.http.legacy after SDk updateSDK 更新后 Android Studio 无法找到 org.apache.http.legacy
【发布时间】:2016-07-27 20:31:28
【问题描述】:

我更新了我的 SDK,但 Android 工作室无法识别 'org.apache.http.legacy'library。

没有org.apache.http.legacy.jar update,更新后应该是in /platforms/android-23/optional path

我无法同步我的项目。

注意:我在 build.gradle 中使用 android useLibrary 'org.apache.http.legacy'

【问题讨论】:

标签: android android-studio gradle sdk build.gradle


【解决方案1】:

尝试在你的 build.gradle 中的useLibrary 'org.apache.http.legacy' 行下写这个:

useLibrary 'org.apache.http.legacy'
packagingOptions {
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
    }

【讨论】:

  • 谢谢 Bui 但这不起作用。同样的错误仍然存​​在。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-07-25
  • 1970-01-01
  • 1970-01-01
  • 2017-07-28
相关资源
最近更新 更多