lintOptions引起的Execution failed for task ':mobile:lint'.编译错误

来源:互联网 发布:半岛雪人 mac 编辑:程序博客网 时间:2024/06/08 08:50

使用Android Studio 2.3编译向导自动生成的工程 时,编译报如下错误:


FAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':mobile:lint'.> Lint found errors in the project; aborting build.    Fix the issues identified by lint, or add the following to your build script to proceed with errors:  ...  android {      lintOptions {          abortOnError false      }  }  ...* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.


编辑每个module的build.gradle文件 ,按上面提示加入即可:


阅读全文
0 0
原创粉丝点击