Android Studio记录一个错误:Execution failed for task ‘:app:lintVitalRelease‘.

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报错
Android Studio记录一个错误:Execution failed for task ‘:app:lintVitalRelease‘._第1张图片

Execution failed for task ':app:lintVitalRelease'. 
> Lint found fatal errors while assembling a release target.

Android Studio记录一个错误:Execution failed for task ‘:app:lintVitalRelease‘._第2张图片

解决方法

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里可以查看报错的具体原因和报错行报错信息,根据提示修改报错。
Android Studio记录一个错误:Execution failed for task ‘:app:lintVitalRelease‘._第3张图片

与君共勉!待续
欢迎指错,一起学习

你可能感兴趣的:(Android,记录错误,android,studio,android)