Android出现Execution failed for task ':app:lintVitalRelease'.> Lint found fatal errors while assembling a release target.
- Execution failed for task ':app:lintVitalRelease'
- 解决方法
Execution failed for task ‘:app:lintVitalRelease’
build project 可以正常执行,
Generate Signed APK 执行报错。
如果是debug不会报错,release报错
Execution failed for task ':app:lintVitalRelease'.
> Lint found fatal errors while assembling a release target.
解决方法
1、在build.gradle(Module:app)的android{}里添加:
lintOptions {
checkReleaseBuilds false
abortOnError false
}
android {
...
lintOptions {
checkReleaseBuilds false
abortOnError false
}
...
}
2、在目录结构下/app/build/reports/的lint-results-release-fatal.xml里可以查看报错的具体原因和报错行报错信息,根据提示修改报错。
与君共勉!待续
欢迎指错,一起学习