BUG截圖
Paste_Image.png
解決方案
設置一
Paste_Image.png
gradle.projectsEvaluated
{
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
設置二
Paste_Image.png
lintOptions {//設置編譯的lint開關,程序在buid的時候,會執行lint檢查,有任何 的錯誤或者警告提示,都會終止構建
abortOnError false
}