After recent Android Studio update, I can build and run an app in the debug mode, but am no longer able to build the release version due to the following error:
The problem is with commons-logging. So it must be excluded. Add the following code in app/build.gradle. It should work.
configurations { all { exclude module: 'httpclient' exclude module: 'commons-logging' } }