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

Android Studio 使用gradle自动打包报错:_第1张图片

问题

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一下项目,再重新打包,错误应该就是没有了

Android Studio 使用gradle自动打包报错:_第2张图片

...

你可能感兴趣的:(Android,Studio,开发必备,Bug,Studio设置,android,studio,android)