I need to upload files using Android\'s HttpClient. Unfortunately, Android doesn\'t include MultipartEntity, so I must using Apache\'s httpmime library.
I don\'t wan
httpmime-4.2.6.jar worked fine all by itself. I needed no other dependencies besides that jar.
If you're using a dependency-managing build system like Maven
or gradle
, you'll notice that httpmime-4.2.6 depends on httpcore-4.2.5. Android's HttpClient seems compatible with httpcore-4.2.5
, so I just excluded that dependency. My actual dependency declaration is below:
org.apache.httpcomponents
httpmime
4.2.6
org.apache.httpcomponents
httpcore