Whever I try to debug and deploy my android application (in Android Studio 0.9) I get the following error:
Execution failed for task ':app:packageAllDebugClassesForMultiDex'.
java.util.zip.ZipException: duplicate entry: android/support/multidex/BuildConfig.class
To make things clear here is a brief history of my actions:
This morning the project was working fine
Added some additional classes and methods
Broke the limit and received this error: Unable to execute dex: method ID not in [0, 0xffff]: 65536
Decided to add multiDex support to my project as reducing the dependencies was not an option
Since then I keep getting the described error just after adding multiDex to my project by following this SO post Using Gradle to split external libraries in separated dex files to solve Android Dalvik 64k methods limit.
Here is my