2

I can build and run the app in the emulator but when I try and generate signed apk the following happens.

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=}
AskNilesh
  • 67,701
  • 16
  • 123
  • 163
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424

2 Answers2

8

try below one

buildTypes {
    release {
        lintOptions {
            disable 'MissingTranslation'
            checkReleaseBuilds false
            abortOnError false
        }
        minifyEnabled false
        signingConfig signingConfigs.release
    }
}
ibad ur rahman
  • 1,381
  • 4
  • 18
  • 40
1

config in build.gradle:

lintOptions {
      checkReleaseBuilds false
       abortOnError false
    }
AskNilesh
  • 67,701
  • 16
  • 123
  • 163
ThoIam
  • 70
  • 6