Android studio 打包问题:Lint found fatal errors while assembling a release target.

Lint found fatal errors while assembling a release target.

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
}
}

编译的时候没有问题 打包的时候出现错误
Android studio 打包问题:Lint found fatal errors while assembling a release target._第1张图片
接下需要找到 Android项目下的build.gradle(Moudle:app)
Android studio 打包问题:Lint found fatal errors while assembling a release target._第2张图片
添加如下语句即可:

Android studio 打包问题:Lint found fatal errors while assembling a release target._第3张图片

  lintOptions {
        checkReleaseBuilds false
        abortOnError false
    }

你可能感兴趣的:(android,studio)