Development environment:
- OS: Windows 7
- JDK: 1.8.0_66
- Android Studio: 1.5, built Nov. 12 2015
- Gradle: v2.8
build.gradle
libs
folder
Project Structure
Exception
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Lorg/apache/http/HttpConnection;
Stuck with this issue for the past two days. Understood that there are multiple definitions of that class in the dependencies, but clueless on the fix. Was unable to get any of the answers on this topic to work.
On Eclipse
this project / module runs without any issues. This is my first shot at Gradle on Android Studio. So,:
dexOptions { preDexLibraries = false }
also fails:
Error:(11, 0) Gradle DSL method not found: 'dexOptions()' Possible causes: The project 'XXX' may be using a version of Gradle that does not contain the method.