When we are building android app using gradle, getting below error.
Failed to list versions for com.android.support:support-v4.
10-May-2022 09:50:30 > Unable to load Maven meta-data from https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml.
10-May-2022 09:50:30 > Could not get resource ‘https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml’.
10-May-2022 09:50:30 > Could not GET ‘https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml’.
Below is the build.gradle file content
apply plugin: ‘com.android.application’
buildscript {
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
}
}
// Allow plugins to declare Maven dependencies via build-extras.gradle.
allprojects {
repositories {
mavenCentral()
jcenter()
}
}
Bintray/jcenter has been retired and while it remains available for read access, it’s possible that some content has been removed. I suggest you remove jcenter()
from your builds and add any additional repositories as documented by the libraries/plugins you are using.
I’m not an android developer, so I cannot give you specific details on their content.