Home > Back-end >  JCentre may be down permanently. What are our options?
JCentre may be down permanently. What are our options?

Time:11-01

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?

CodePudding user response:

I guess your question is already answered here.

As mentioned in this source:

No more submissions will be accepted to JCenter since March 31st, 2021.

So you should migrate all of your repositories to the alternative hosts such as mavenCentral.

CodePudding user response:

As stated in https://stackoverflow.com/a/74265617/772091 , dependencies can come with their own jcenter() repository. If you can wait for every dependencies to be updated, you can force remove thos repositories, using in your android/app/build.gradle file :

allprojects {
    repositories {
        all { ArtifactRepository repo ->
            if (repo instanceof MavenArtifactRepository) {
                def url = repo.url.toString()
                if (url.startsWith('https://jcenter.bintray.com/')) {
                    remove repo
                }
            }
        }
...
  • Related