Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (3.5k points)

I've tried to upload my apk on google play and encountered an error message: "You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play. Learn more about debuggable APKs."

Then I wrote android:debuggable="false" in my manifest and tried again. I've encountered the same error, so I"ve seted the build variant from my module to release and generate an apk again, but this, generated this error:

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

      }

  }

  ...

1 Answer

0 votes
by (46k points)
I wouldn't suggest turning off the lint remittances, they're there for a purpose. Instead, check what the mistake is and fix it.

The error address is saved to [app module]/build/reports/lint-results-yourBuildName-fatal.html. You can open this file in a browser to read about the errors.

It would be nice if Gradle could make it a concise more clear where the error report is generated.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...