question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android build task "Resolve dependencies of :stripe_stripe-react-native:debugCompileClasspath > Resolve dependencies of :stripe_stripe-react-native:debugRuntimeClasspath" fails

See original GitHub issue

Describe 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:closed
  • Created a year ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
c-infocommented, Oct 31, 2022

Temporary solution

node_modules/@stripe/stripe-react-native/android/build.gradle

Replace jcenter() with mavenCentral()

in repositories { …} , buildscript { … }

0reactions
hongkhengcommented, Nov 1, 2022

Hitting this error:

Execution failed for task ':app:mergeDebugAssets'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve com.stripe:financial-connections:20.5.+.
     Required by:
         project :app > project :stripe_stripe-react-native
      > Failed to list versions for com.stripe:financial-connections.
         > Unable to load Maven meta-data from https://jcenter.bintray.com/com/stripe/financial-connections/maven-metadata.xml.
            > Could not HEAD 'https://jcenter.bintray.com/com/stripe/financial-connections/maven-metadata.xml'.
               > Read timed out

did you fixed it?

Update: I did a ./gradlew clean and it able to build again. I’m using version 0.18.1.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found