I tried to add the following to the root build.gradle
file:
subprojects {
gradle.projectsEvaluated {
tasks.withType(Compile) {
options.compilerArgs << "-Xlint:unchecked -Xlint:deprecation"
}
}
}
But I'm getting this:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':Libraries:ActionBarSherlock:compileRelease'.
> invalid flag: -Xlint:unchecked -Xlint:deprecation
What am I doing wrong?
"-Xlint:unchecked" << "-Xlint:deprecation"
and it worked for both :) If you want to create an answer with this, I'll gladly mark it as accepted. – Hylophagous