* 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With