I don\'t use Android Studio but I build everything from the command line using build.gradle. I generate a Lint report like this:
build.gradle
./gradlew lint
To answer my own question, you need to add the following to your project-level build.gradle file:
allprojects { ... gradle.projectsEvaluated { tasks.withType(JavaCompile) { options.compilerArgs << "-Xlint:deprecation" } } }