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
  • 63,753
  • 16
  • 113
  • 150
Niklas Rosencrantz
  • 23,939
  • 70
  • 214
  • 404

2 Answers2

8

try below one

buildTypes {
    release {
        lintOptions {
            disable 'MissingTranslation'
            checkReleaseBuilds false
            abortOnError false
        }
        minifyEnabled false
        signingConfig signingConfigs.release
    }
}
ibad ur rahman
  • 1,139
  • 3
  • 15
  • 38
1

config in build.gradle:

lintOptions {
      checkReleaseBuilds false
       abortOnError false
    }
AskNilesh
  • 63,753
  • 16
  • 113
  • 150
ThoIam
  • 70
  • 6