【发布时间】:2014-07-28 16:58:47
【问题描述】:
我尝试在 google play 上上传我的 apk 并遇到错误消息:“您上传了一个可调试的 APK。出于安全原因,您需要先禁用调试,然后才能在 Google Play 中发布它。了解有关可调试 APK 的更多信息。 "
然后我在清单中写了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
}
}
...
【问题讨论】:
-
所有答案似乎要么不检查错误,要么不中止错误,但是找到问题并纠正它呢? Android Studio 没有显示任何错误信息...任何人都能够在不忽略错误的情况下解决此问题?
-
stackoverflow.com/questions/43203415/… 转到此页面以获取答案。它为我工作
-
"但是发现问题并纠正它呢???"我也是这么想的,但我总是忽略了底部栏上的“检查结果”选项卡以及 build\report 文件夹内容。请检查。
-
build/report 文件夹是一个很好的提示。对我来说,问题是缺少翻译,从 html 报告中可以清楚地看到。
-
关于错误google给你解决方案,你为什么不试试这个????首先尝试理解错误以及错误消息