Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Apache Http MultipartEntityBuilder的Maven存储库_Android_Maven - Fatal编程技术网

Android Apache Http MultipartEntityBuilder的Maven存储库

Android Apache Http MultipartEntityBuilder的Maven存储库,android,maven,Android,Maven,我正试图将'MultipartEntityBuilder'文件导入到Android项目中,但我一生都找不到正确的存储库 我尝试过这三个Apache HttpComponents网站,但没有成功: compile 'org.apache.httpcomponents:httpcore:4.4.3' compile 'org.apache.httpcomponents:httpclient:4.5.1' compile 'org.apache.httpcomponents:httpasyncclie

我正试图将
'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'
有人能给我指出正确的方向吗?提前谢谢。

回答我自己的问题(大约一个小时的搜索之后)

最后一个有
MultipartEntityBuilder
。可以取出
httpasyncclient
httpclient

还需要在渐变文件中添加排除项:

以其他方式吐出假人,并告诉您与重复文件相关的内容(红色)

compile 'org.apache.httpcomponents:httpcore:4.4.3'
compile 'org.apache.httpcomponents:httpmime:4.5.1'
packagingOptions {
    exclude 'META-INF/DEPENDENCIES'
    exclude 'META-INF/NOTICE'
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/LICENSE.txt'
    exclude 'META-INF/NOTICE.txt'
}