Unable to get dependencies from jcenter with a new project [closed]

jcenter is currently down. In the end adding mavenCentral() to both sets of repositories in the project build.gradle file worked as a workaround for me:

buildscript {
    repositories {
        mavenCentral()
        google()
        jcenter()

...

allprojects {
    repositories {
        mavenCentral() 
        google() 
        jcenter()

...


Downgrade Gradle version is not a good fix for me. I did google around and found this. Jcenter is dead. For now.

https://status.bintray.com/?fbclid=IwAR3NLsnuGA5xqbFhcPsVLWX2c9TG40JWQcDYM7RTVsDm0qDSQvfjmhabhPg

I think all we can do is wait.


While mostly meant as a temporary, change-back-again-when-jcenter-is-working solution, this can be fixed by downgrading the gradle plugin version to 3.3.1 in the project's gradle file:

classpath 'com.android.tools.build:gradle:3.3.1'

replace jcenter() with mavenCentral() because jcenter is not available now