欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  移动技术

AS打包release出现的问题

程序员文章站 2022-03-28 16:11:59
当你好不容易写完一个安卓程序,却发现打包release的时候出现了错误,是不是很崩溃呢,今天我就遇到了这样一个错误:org.gradle.api.GradleException: Lint found fatal errors while assembling a release target.To proceed, either fix the issues identified by lint, or modify your build script as follows:android {lin...

当你好不容易写完一个安卓程序,却发现打包release的时候出现了错误,是不是很崩溃呢,今天我就遇到了这样一个错误:

org.gradle.api.GradleException: Lint found fatal errors while assembling a release target.To proceed, either fix the issues identified by lint, or modify your build script as follows:
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
    }
}

解决方案:
找到app中的build.gradle,并添加如下的代码

android{
    lintOptions {
        checkReleaseBuilds false
        abortOnError false
    }
}

本文地址:https://blog.csdn.net/Antiope/article/details/107598602

相关标签: 安卓