I use lint to check an Android app project:
gradlew lint
It shows the following:
> Task :app:compileOfficialDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
The process generates two files: lint-results.html and lint-results.xml. I checked both files, but could not find any information related to deprecated API. Is it possible to generate more details about deprecated API in these two files?
Here's an example "build.gradle" I marked up:
In this example, I added
options.compilerArgs << "-Xlint:all"tobuild.gradle.This gave me a bunch of Lint warning in my Android Studio "Build" window: