I'm putting the following at the end of my project gradle file:
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs +=
['-Xep:MissingOverride:ERROR',
'-Xep:MissingCasesInEnumSwitch:ERROR',]
}
}
However, in my code if I remove an @Override
annotation somewhere or remove a switch statement, my Android project still builds. Shouldn't it fail with an error?