gpt4 book ai didi

java - ' :app:lintVitalRelease' error when generating signed apk

转载 作者:IT老高 更新时间:2023-10-28 12:17:38 27 4
gpt4 key购买 nike

我尝试在 google play 上上传我的 apk 并遇到错误消息:“您上传了一个可调试的 APK。出于安全原因,您需要先禁用调试,然后才能在 Google Play 中发布它。了解有关可调试 APK 的更多信息。 "

然后我在 list 中写了 android:debuggable="false" 并再次尝试。我遇到了同样的错误,所以我将我的模块中的构建变体设置为发布并尝试再次生成一个 apk,但这一次,生成了这个错误:

Error:Gradle: Execution failed for task ':app:lintVitalRelease'.
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
}
}
...

最佳答案

我不建议关闭 lint 检查,它们的存在是有原因的。相反,检查错误是什么并修复它。

错误报告保存到 [app module]/build/reports/lint-results-yourBuildName-fatal.html。您可以在浏览器中打开此文件以了解错误。

如果 Gradle 能够更清楚地说明错误报告的生成位置,那就太好了。

关于java - ' :app:lintVitalRelease' error when generating signed apk,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24098494/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com