我尝试在Google Play上上传我的apk时遇到了一个错误信息:“您上传了一个可调试的APK。出于安全原因,在发布到Google Play之前,您需要禁用调试功能。 了解有关可调试APK的更多信息。”
然后我在清单文件中写入android:debuggable =“false”
并再次尝试。我遇到了相同的错误,所以我将构建变体从我的模块设置为“Release”并再次生成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
}
}
...