It’s a nice warning, not an error. To see the complete lint report you can add these lines to build.gradle:
allprojects {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:deprecation"
}
}
If you really want to get rid of those warnings:
- Don’t use deprecated API
- Use @SuppressWarnings(“deprecation”)