I have been trying to build a react native app since the early hour of today but was getting the follwing errors:
> Could not HEAD 'https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml'.
> Read timed out
After checking out https://jcenter.bintray.com, I found out it was down. Can anyone point me to the right option to resolve this issue? Is there any alternative since they said the site may not come back up?
4
Answers
I guess your question is already answered here.
As mentioned in this source:
So you should migrate all of your repositories to the alternative hosts such as mavenCentral.
As stated in https://stackoverflow.com/a/74265617/772091 , dependencies can come with their own
jcenter()
repository. If you can wait for every dependency to be updated, you can force remove those repositories, using yourandroid/app/build.gradle
file :Based on the answered issue on Github, a temporary solution could be like the following:
if the issue came form
node_modules
you can usepatck-package
to keep the changes on production environment.Reference links, [FIXED] Android build failures : https://github.com/facebook/react-native/issues/35210