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 falseabortOnError false}...
}
2、在目錄結構下/app/build/reports/的lint-results-release-fatal.xml里可以查看報錯的具體原因和報錯行報錯信息,根據提示修改報錯。
與君共勉!待續
歡迎指錯,一起學習