I've added HttpClient 4.3.3 for android to my build.gradle file as described by Apache, but my app hasn't changed in size. Because of this I'm pretty sure that, while my IDE shows httpclient-android-4.3.3 as an External Library, it's not actually being included and used by my app.
I've tried to verify the version of http client according to this post, but VersionInfo.loadVersionInfo()
keeps returning null.
My questions boil down to:
- How do I verify the version of Apache HttpClient that I'm using?
- How do I make it so that my app uses the version I've specified in Gradle? Am I supposed to exclude the Android HttpClient in my gradle build?
gradlew dependencyInsight --configuration=runtime --dependency=httpclient-android
for the app project. – WaywardRelying on packaging to define the extension of the main artifact has been deprecated and is scheduled to be removed in Gradle 2.0 :myApp:dependencyInsight org.apache.httpcomponents:httpclient-android:4.3.3 \--- compile
Does this mean I'm using the newer version of httpclient over the android framework's version? – Anchusin--configuration=runtime
. If this prints the same version, all should be good. – WaywardConfiguration with name 'runtime' not found.
exception. – Anchusinruntime
configuration. Anyhow, according to the Android docs: "The compile configuration is used to compile the main application. Everything in it is added to the compilation classpath and also packaged in the final APK.". Hence the lib should be included. How Android deals with the conflict between the built-in and the external http-client version I don't know. – Wayward