I am using Android Studio 1.5.1. I want to get a build failure if using an outdated API. Currently, I am changing the error level in the settings, but the assembly only gives me a warning. I tried to insert a gradle file:
lintOptions {
abortOnError true
}
but that will not work. Is there any code that I can use in the gradle file or any option?
source
share