打包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
}
相关推荐
鹧鸪晏2 天前
Android 项目里众多的gradle文件,你知道他们是什么吗
gradle
plainGeekDev6 天前
RecyclerView.Adapter → ListAdapter
java·kotlin·gradle
plainGeekDev7 天前
findViewById → ViewBinding
java·kotlin·gradle
帅次11 天前
Jetpack Compose 动画实战:animateFloatAsState、AnimatedVisibility 与 graphicsLayer 避坑
android·kotlin·gradle·android jetpack
Carson带你学Android12 天前
告别复杂的 Gradle 配置!JetBrains Amper 0.10 发布:用 YAML 构建 Kotlin/Android 项目
kotlin·gradle
Java小学生丶12 天前
记录一下我的 Gradle 开发环境配置过程
android·java·gradle·maven·安卓
绿色水杯00713 天前
Android Gradle 依赖分析器
gradle
それども20 天前
Gradle 构建疑难杂症 Could not find netty-transport-native-epoll-linux-aarch_64.ja
java·服务器·gradle·maven
帅次1 个月前
深入 MaterialTheme:掌握 ColorScheme 与 Typography 的设计核心
android·kotlin·gradle·android jetpack·compose
帅次1 个月前
Navigation Compose:NavHost、NavController 与参数
android·kotlin·gradle·android jetpack·compose