Home > Mobile >  unable to get metadata from jcenter
unable to get metadata from jcenter

Time:10-31

Error getting while creating release build in react native

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':react-native-community_clipboard:verifyReleaseResources'.
> Could not resolve all task dependencies for configuration ':react-native-community_clipboard:releaseRuntimeClasspath'.
   > Could not resolve com.facebook.react:react-native: .
     Required by:
         project :react-native-community_clipboard
      > 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 GET 'https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml'.
               > Read timed out

* 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.

Error found during release build in react native

CodePudding user response:

Currently jcenter down

Solution try replace jCenter() to mavenCentral() to your project gradle

 repositories {
        google()
        mavenCentral()
    }

CodePudding user response:

As from here, replace jcenter() with mavenCentral() in your android/app/build.gradle.

  • Related