📜  Xlint:deprecation android studio - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:28.788000             🧑  作者: Mango

代码示例1
//add to android project level build.gradle
allprojects {
    gradle.projectsEvaluated {
        tasks.withType(JavaCompile) {
            options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
        }
    }
}