【已解决】Execution failed for task ':app:lint'

来源:互联网 发布:vendor.bundle.js文件 编辑:程序博客网 时间:2024/06/01 10:42

错误如下

<strong><span style="font-size:18px;">Execution failed for task ':mvpretrofit:lint'.> Lint found errors in the project; aborting build.</span></strong>

解决如下

build.gradle文件中插入

<strong><span style="font-size:18px;">lintOptions {//设置编译的lint开关,程序在buid的时候,会执行lint检查,有任何的错误或者警告提示,都会终止构建        abortOnError false    }</span></strong>

效果如下


希望帮助其他人解决这个问题

2 0
原创粉丝点击