我在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
识别为类并显示错误。那它为什么会有冲突?