Android Studio 2.0 Preview: ':app:transformClassesWithInstantRunForDebug' FAILED
Resolved :
Disable the Instant Run option in Android Studio 2.0 Preview
Something you can try is deleting the build folder. That does not always work but fixes it sometimes.
rm -rf cart/build
If that does not work. Run that command then in Android Studio select invalidate caches and restart.