【问题标题】:Maven Repository for Apache Http MultipartEntityBuilderApache Http MultipartEntityBuilder 的 Maven 存储库
【发布时间】:2016-01-25 03:35:41
【问题描述】:

我正在尝试将 'MultipartEntityBuilder' 文件导入 Android 项目,但我终生无法找到正确的存储库。

尝试了这三个关闭 Apache HttpComponents 网站,但没有成功:

compile 'org.apache.httpcomponents:httpcore:4.4.3'
compile 'org.apache.httpcomponents:httpclient:4.5.1'
compile 'org.apache.httpcomponents:httpasyncclient:4.1'

谁能指出我正确的方向?提前致谢。

【问题讨论】:

    标签: android maven


    【解决方案1】:

    回答我自己的问题(经过大约一个小时的搜索)...

    compile 'org.apache.httpcomponents:httpcore:4.4.3'
    compile 'org.apache.httpcomponents:httpmime:4.5.1'
    

    最后一个有MultipartEntityBuilder。可以取出httpasyncclienthttpclient

    还需要在你的 gradle 文件中添加排除:Duplicate files copied (Android Studio 0.4.0)

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

    否则会吐出假人并告诉你一些你不关心的与重复文件相关的东西(红色)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-11-14
      • 2012-08-17
      • 1970-01-01
      • 1970-01-01
      • 2014-04-08
      • 2011-02-04
      • 2012-08-23
      • 1970-01-01
      相关资源
      最近更新 更多