show root-cause for compile-message: Recompile with -Xlint:deprecation for details

if the compile-output shows something like:

Recompile with -Xlint:deprecation for details

Build-Output

Then it is time to get to the details of this message:

in Gradle-scripts/build.gradle (Project) include the following line(s):

tasks.withType(JavaCompile) {
        options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
    }
build.gradle example

When you now run the app the root-cause is shown in the output:

example of build-output

Done

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.