You can get more information about this error on this question: "JCenter is at end of life" android lint warning, what is the replacement?
You need to add mavenCentral() to android/build.gradle
repositories {
google()
jcenter()
mavenCentral() //add this
}
and
allprojects {
repositories {
...
google()
jcenter()
mavenCentral() //add this
maven { url 'https://www.jitpack.io' }
}
}