1

Android build using AWS CodeBuild fails with following error:

Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all files for configuration ':app:lintClassPath'.
   > Could not download groovy-all-2.4.15.jar (org.codehaus.groovy:groovy-all:2.4.15)
      > Could not get resource 'https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar'.
         > Could not GET 'https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar'.
            > Connection reset

The build works fine on my local machine. The above mentioned error occurs only while trying to build the apk using AWS CodeBuild.

If this has something to do with jcenter shutdown, how to fix it?

Krishna
  • 11
  • 1
  • 3

1 Answers1

1

Open your build.gradle file and add the code below under android:

android {

lintOptions { 
  checkReleaseBuilds false 
}

For more details Here

Nooruddin Lakhani
  • 7,507
  • 2
  • 19
  • 39
  • This fixed the lint error but the build still fails with another error https://stackoverflow.com/questions/68372162/android-build-fails-with-error-execution-failed-for-task-appcheckreleasedupl – Krishna Jul 14 '21 at 04:43