As answered here, when targeting Android M we can use the following to build our project: useLibrary 'org.apache.http.legacy'
This helps to build debug version of our app. However when trying to build the release version with Proguard we get the following error from gradle:
What went wrong:
Execution failed for task ':shrinkXXX5ReleaseMultiDexComponents'.> java.io.IOException: The output jar [/Users/.../projects/XXX/build/intermediates/multi-dex/XXX/release/componentClasses.jar] must be specified after an input jar, or it will be empty.
Clearly there is some issue with legacy http client and multidex. Anyone has a solution for this?
We use compile 'com.android.support:multidex:1.0.1'
and multiDexEnabled true
for our release build