Android build is failing. 502 Bad Gateway
See original GitHub issueDescription
I am trying to build an android release in AppCenter and I am getting the following error:
* What went wrong:
Execution failed for task ':app:lintVitalStagingRelease'.
> 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
I think its related to jcenter but I am unsure of how I need to sort this out. I saw a PR here which possibly sort this issue out and I am wondering if there is any other solution here.
Platform
- iOS
- Android
- Web
- Windows
- tvOS
Workflow
- Managed workflow
- Bare workflow
Package versions
package | version |
---|---|
react-native | 0.66.3 |
@react-navigation/native | 6.0.6 |
@react-navigation/native-stack | 6.2.5 |
react-native-screens | 3.10.1 |
react-native-safe-area-context | 3.3.2 |
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
Android Studio: Gradle sync failed: Could not HEAD ...
Android Studio : Gradle sync failed: Could not HEAD '...'. Received status code 502 from server: Bad Gateway [closed] · try this stackoverflow.com ......
Read more >Received status code 502 from server: Bad Gateway ... - GitHub
Same here: `FAILURE: Build failed with an exception. What went wrong: Could not determine the dependencies of task ':app:processDebugResources'.
Read more >Received status code 502 from server: Bad Gateway in React ...
kill terminal; open project in Android Studio (Android folder location). Click on sync in logcat . Project will build successfully. Run the ...
Read more >502 Bad Gateway Error: What It Is and How to Fix It - Lifewire
The 502 Bad Gateway error is an HTTP status code that means that one server on the internet received an invalid response from...
Read more >What is a 502 Bad Gateway Error (And How Can I Fix It)?
A 502 Bad Gateway Error occurs when you try to visit a web page, but one web server gets an invalid response from...
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
I made a PR that removes jcenter: 1270
didn’t help