Gradle编译BUG处理

  • 2019 年 11 月 7 日
  • 筆記

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  }