Android build task "Resolve dependencies of :stripe_stripe-react-native:debugCompileClasspath > Resolve dependencies of :stripe_stripe-react-native:debugRuntimeClasspath" fails
See original GitHub issueDescribe the bug
I recently upgraded to @stripe/stripe-react-native@0.19.0
, everything was working fine on Android. I had an issue with npm so re-ran npm install
, and am now getting the following build error on Android. I’ve tried removing node_modules
and re-installing but the issue persists.
It seems that stripe-react-native
is attempting to load https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml, but it is timing out. I take it this is just an issue with react-native and it should come back online in time?
Could not determine the dependencies of task ':stripe_stripe-react-native:dataBindingMergeDependencyArtifactsDebug'.
> Could not resolve all task dependencies for configuration ':stripe_stripe-react-native:debugRuntimeClasspath'.
> Could not resolve com.facebook.react:react-native:+.
Required by:
project :stripe_stripe-react-native
> Failed to list versions for com.facebook.react:react-native.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml.
> Could not HEAD 'https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml'.
> Read timed out
Issue Analytics
- State:
- Created a year ago
- Comments:8
Top Results From Across the Web
Could not resolve all dependencies for configuration ':classpath'
Right, I'm not sure if it will work for others but worked for me. I changed proxyPort to 8080 and used jcenter instead...
Read more >Add build dependencies - Android Developers
Learn how to add build dependencies using the Gradle build system in Android Studio. ... To resolve this error, add annotation processors to...
Read more >Understanding dependency resolution - Gradle User Manual
How Gradle retrieves dependency metadata? The Dependency Cache; Dealing with ephemeral builds; Accessing the resolution result programmatically. This chapter ...
Read more >Gradle dependencies | IntelliJ IDEA Documentation - JetBrains
Any dependency added to the project is managed by Gradle. The best way to add or manage a dependency is in the build.gradle...
Read more >'Failed to list versions for com.facebook.react:react-native ...
Android build failed : 'Failed to list versions for ... Could not resolve all task dependencies for configuration ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Temporary solution
node_modules/@stripe/stripe-react-native/android/build.gradle
Replace jcenter() with mavenCentral()
in repositories { …} , buildscript { … }
Update: I did a
./gradlew clean
and it able to build again. I’m using version0.18.1
.