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:packageAllDebugCl
To diagnose and fix this problem, run this gradle command:
./gradlew clean app:dependencies
this will list all of the dependencies in your app in a tree. Search the results for the offending duplicate class and add
compile('naughty.library') {
exclude group: 'foo', module: 'bar'
}
to remove the duplicate.