How can I do "Recompile with -Xlint:unchecked for details" on Android Studio?

Viewed 2169
1 Answers

In your project level build.gradle file add this and build the app again

allprojects {
    repositories {
        google()
        jcenter()
    }

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


}

It will show the deprecation warnings.Upgrade them to latest version.Hope this fix your problem

Related