打包apk时出现Execution failed for task ‘:app:lintVitalRelease

程序可以正常运行,但是打包apk的时候报Execution failed for task ':app:lintVitalRelease导致打包失败,原因是执行lintVitalRelease失败了,存在错误。解决办法:在app模块的build.gradle的Android里面添加如下代码:

复制代码
lintOptions {
    checkReleaseBuilds false
    // Or, if you prefer, you can continue to check for errors in release builds,
    // but continue the build even when errors are found:
    abortOnError false
}
相关推荐
帅次9 小时前
状态 StateFlow、ViewModel 与 UI 收集
android·kotlin·gradle·android studio·android jetpack
帅次1 天前
Compose 入门:@Composable、组合与重组
android·kotlin·gradle·android jetpack·compose·composable
千码君20164 天前
Trae:一些关于flutter和 go前后端开发构建的分享
android·flutter·gradle·android-studio·trae·vibe code
千码君20166 天前
flutter:构建失败的原因总结
android·flutter·gradle·模拟器·dependencies·emulator
空中海7 天前
第 3 章:Gradle 进阶工程能力
gradle
空中海7 天前
第 2 章:Gradle 项目构建实战
gradle
空中海7 天前
第 1 章:Gradle 入门基础
gradle
空中海7 天前
第 4 章:Gradle 专家级实践
gradle
黄林晴8 天前
警惕!AGP 9.2 别只改版本号,R8 规则与构建链路全线收紧
android·gradle
followYouself14 天前
Gradle、AGP、Plugin插件基本知识
android·gradle·plugin·agp