* What went wrong: 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://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar'. > Could not GET 'https://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar'. > Connection reset
* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
This happened to me with React Native 0.63 and Flipper version 0.54.
I did this to fix it:
groovy-all-2.4.15.jar
from https://repo1.maven.org/maven2/org/codehaus/groovy/groovy-all/2.4.15/android/libs
(if you don't have it).jar
file in the folder android/libs
(you should check in the.jar file into your repository)build.gradle
, add flatDir
:allprojects {
repositories {
google()
mavenLocal()
mavenCentral()
jcenter()
// ...
+ flatDir {
+ dirs "$rootProject.projectDir/libs"
+ }
}
}
The way I fixed was by adding mavenCentral()
before jcenter
. I didn't need to do it in all the node_modules. Just in the build.gradle
of the app
Finally, I was able to find an answer, I am sharing it here because if anyone found the same issue can fix it.
Please remove android.enableAapt2=false from the Gradle.properties file. As App center must be using updated Gradle where the Aapt tool is true by default, this line is deprecated So remove it and try building the app on App center again.
I hope it will resolve the issue for everyone facing it. :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.