It’s seems that it have something to do with incremental compilation added in Gradle 2.10
I managed to fix it adding the following command to gradle:
-Pandroid.incrementalJavaCompile=false
You can add it in Android Studio in: File | Settings | Build, Execution, Deployment | Compiler adding it as a Command line option.
edit as of 2.0.0-beta3 the plugin gives a warning telling you that this option has been added to the Gradle DSL:
android {
compileOptions.incremental = false
}