警告:依赖org.apache.httpcomponents:httpclient被忽略,因为它可能与Android提供的内部版本冲突

时间:2015-04-06 12:03:07

标签: java android http file-upload androidhttpclient

我在gradle依赖项中添加了http mime库:

compile 'org.apache.httpcomponents:httpmime:4.4.1'

但在编译Android Studio后会显示以下警告:

Warning:Dependency org.apache.httpcomponents:httpclient is ignored as it may be conflicting with the internal version provided by Android.

如何摆脱这些警告?

修改 如果它是由Android提供的内置,那么当我为这样的文件上传编写代码时:

 MultipartEntity entity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE);

然后它不会将MultipartEntity识别为类并显示错误。那它为什么会有冲突?

0 个答案:

没有答案
相关问题