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')
  • 解决方法

Execution failed for task ':app:lintVitalRelease'

build project 可以正常执行,

Generate Signed APK 执行报错。

如果是debug不会报错,release报错

java 复制代码
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

}

java 复制代码
android {
	...
    lintOptions {
        checkReleaseBuilds false
        abortOnError false
    }
    ...
}

2、在目录结构下/app/build/reports/的lint-results-release-fatal.xml里可以查看报错的具体原因和报错行报错信息,根据提示修改报错。

与君共勉!待续

欢迎指错,一起学习

相关推荐
2501_9159090620 小时前
苹果上架App软件全流程指南:iOS 应用发布步骤、App Store 上架流程、uni-app 打包上传与审核技巧详解
android·ios·小程序·https·uni-app·iphone·webview
2501_9159214320 小时前
iOS 文件管理与能耗调试结合实战 如何查看缓存文件、优化电池消耗、分析App使用记录(uni-app开发与性能优化必备指南)
android·ios·缓存·小程序·uni-app·iphone·webview
2501_9159184121 小时前
App 苹果 上架全流程解析 iOS 应用发布步骤、App Store 上架流程
android·ios·小程序·https·uni-app·iphone·webview
2501_9160074721 小时前
苹果上架全流程详解,iOS 应用发布步骤、App Store 上架流程、uni-app 打包上传与审核要点完整指南
android·ios·小程序·https·uni-app·iphone·webview
PuddingSama1 天前
Android 高级绘制技巧: BlendMode
android·前端·面试
2501_915921431 天前
iOS App 性能监控与优化实战 如何监控CPU、GPU、内存、帧率、耗电情况并提升用户体验(uni-app iOS开发调试必备指南)
android·ios·小程序·uni-app·iphone·webview·ux
Digitally1 天前
如何将视频从安卓手机传输到电脑?
android·智能手机·电脑
CV资深专家1 天前
Android 相机框架的跨进程通信架构
android
前行的小黑炭1 天前
Android :如何提升代码的扩展性,方便复制到其他项目不会粘合太多逻辑,增强你的实战经验。
android·java·kotlin
2501_915921431 天前
前端开发工具有哪些?常用前端开发工具、前端调试工具、前端构建工具与效率提升工具对比与最佳实践
android·前端·ios·小程序·uni-app·iphone·webview