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
Thread is a bit old, but I got this error too.
My problem was that I used two different com.google.android.gms:play-services Versions in my gradle file.
compile 'com.google.android.gms:play-services-gcm:7.5.0'
compile 'com.google.android.gms:play-services-analytics:7.3.0' // WRONG!
Make sure, that you always use same versions like:
compile 'com.google.android.gms:play-services-gcm:7.5.0'
compile 'com.google.android.gms:play-services-analytics:7.5.0'