':app:lintVitalRelease' 生成签名 apk 时出现错误
我尝试在Google Play上上传我的apk,但遇到一条错误消息:“您上传了可调试的APK。出于安全原因,您需要先禁用调试,然后才能在 Google Play 中发布调试。详细了解可调试的 APK。
然后我写在我的清单上,并再次尝试。我遇到了同样的错误,所以我已经从我的模块中设置了构建变体来发布,并尝试再次生成一个apk,但是这次,生成了这个错误:android:debuggable="false"
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
}
}
...