Friday, September 14, 2018

Gradle build error when trying to Generate Signed Apk

Credit goes to : StackOverflow

6 down vote accepted
It's a lintValidRelease issue. You need an add lintOptions in Gradle file.
android {
..
     lintOptions {

        checkReleaseBuilds false

    }
}
  • Thank You! that would work but what i did was that i connected to the internet when generating the signed Apk and by itself it did the magic – Micklo_Nerd Apr 2 at 8:56
  • 3
    Adding lintOptions works, but it seems like a workaround. What is the root cause? I'm connected to the internet and it doesn't help. – 0xF Apr 5 at 18:42
  • I would also like to find root cause for this. suddenly my CircleCi started throwing me this error Execution failed for task 'app:lintVitalRelease'. > Could not resolve all files for configuration 'app:lintClassPath'. > Could not find lint-checks.jar (com.android.tools.lint:lint-checks:26.1.2). Searched in the following locations: https://jcenter.bintray.com/com/android/tools/lint/lint-checks/26.1.2/lint-checks-26.1.2.jar – Rohit Karadkar May 28 at 14:54

No comments:

Post a Comment