Android Studio 使用gradle自动打包报错:

问题

Execution failed for task ':app:lintVitalRelease'.

> Lint found fatal errors while assembling a release target.

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

任务“:app:lintVitalRelease”的执行失败。

>Lint在组装发布目标时发现致命错误。

*尝试:

使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。运行--scan以获得完整的见解。

解决:

解决办法:在app的build.gradle里面android下面加上:

lintOptions {

checkReleaseBuilds false

abortOnError false

}

然后build或者clean一下项目,再重新打包,错误应该就是没有了

...

猜你喜欢

转载自blog.csdn.net/jun_tong/article/details/127774688