Android comes with an apache HttpClient 4.0 plugin, and gradle is ignored when trying to import a newer version. (This gives me a warning: "The org.apache.httpcomponents: httpclient: 4.4.1 dependency is ignored for debugging, as this may contradict the internal version provided by Android.")
There is an official workaround. This is the httpclient fork with different package names and other compatibility changes. You can find it in the maven repository (or search for "httpclient-android").
source share