Android Studio中的错误消息

时间:2018-03-16 10:16:08

标签: android android-studio

我可以在模拟器中构建和运行应用程序但是当我尝试生成签名的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=}

2 个答案:

答案 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
    }
}