我可以在模拟器中构建和运行应用程序但是当我尝试生成签名的apk时,会发生以下情况。
Error:Execution failed for task ':app:lintVitalRelease'.
> Invalid main APK outputs : BuildOutput{apkInfo={type=MAIN, versionCode=0, filters=[]}, path=C:\Users\datan\StudioProjects\gamex\app\release\app-release.apk, properties=},BuildOutput{apkInfo={type=MAIN, versionCode=0, filters=[]}, path=C:\Users\datan\StudioProjects\gamex\app\release\space-release.apk, properties=}
答案 0 :(得分:1)
config
中的 build.gradle
:
lintOptions {
checkReleaseBuilds false
abortOnError false
}
答案 1 :(得分:1)
尝试低于一个
buildTypes {
release {
lintOptions {
disable 'MissingTranslation'
checkReleaseBuilds false
abortOnError false
}
minifyEnabled false
signingConfig signingConfigs.release
}
}