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.

Build getting failed with Unable to load Maven meta-data from https://jcenter.bintray.com/

See original GitHub issue

Description

Build getting failed with react-native-screens package

Screenshots


* What went wrong:
Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':react-native-screens:releaseRuntimeClasspath'.
   > Could not resolve com.facebook.react:react-native:+.
     Required by:
         project :react-native-screens
      > 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 resource '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'. Received status code 502 from server: Bad Gateway

* 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

BUILD FAILED in 4m 30s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings
95 actionable tasks: 95 executed

Steps To Reproduce

Expected behavior

Actual behavior

Reproduction

./gradlew clean && ./gradlew assembleRelese

Platform

  • Android

Workflow

  • Bare workflow

Package versions

  "dependencies": {
    "@react-navigation/bottom-tabs": "^6.0.9",
    "@react-navigation/elements": "^1.2.1",
    "@react-navigation/native": "^6.0.6",
    "@react-navigation/native-stack": "^6.2.5",
    "@reduxjs/toolkit": "^1.7.1",
    "axios": "^0.24.0",
    "react": "17.0.2",
    "react-native": "0.66.3",
    "react-native-gesture-handler": "^2.1.1",
    "react-native-reanimated": "^2.3.1",
    "react-native-safe-area-context": "^3.3.2",
    "react-native-screens": "^3.10.1",
    "react-native-status-bar-height": "^2.6.0",
    "react-native-video": "^5.2.0",
    "react-redux": "^7.2.6",
    "redux": "^4.1.2",
    "redux-logger": "^3.0.6",
    "redux-saga": "^1.1.3",
    "styled-components": "^5.3.3"
  },

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
kacperkapusciakcommented, Jan 17, 2022

Thanks for submitting an issue!

Due to the second major jcenter() outage in a week we’ve decided to remove it from react-native-screens.

With this, we’ve released patch version3.10.2 that removes jcenter() 👉 https://github.com/software-mansion/react-native-screens/releases/tag/3.10.2

1reaction
mificommented, Jan 16, 2022

I thought they are going to keep a read only repo indefintely?

Read more comments on GitHub >

github_iconTop Results From Across the Web

FAILURE: Build failed with an exception.
Unable to load Maven meta-data from https://jcenter.bintray.com/org/webkit/android-jsc/maven-metadata.xml Issue in react native · Ask Question.
Read more >
502 Bad Gateway: Unable to load Maven meta-data from ...
Description Getting such an error, while building the app in release mode: > Failed to list versions for com.facebook.react:react-native.
Read more >
[Solved]-Unable to load Maven meta-data from https://jcenter ...
Go to node_modules/library-with-error/android/build.gradle · Change jcenter() to mavenCentral() · Run: npx patch-package library-with-error · Git add, commit and ...
Read more >
Dependency from jcenter.bintray.com failed
When we are building android app using gradle, getting below error. ... 10-May-2022 09:50:30 > Unable to load Maven meta-data from ...
Read more >
Android Build fails can't ger support-v4/maven-metadata.xml
Unable to load Maven meta-data from https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml. > Could not get resource ...
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