Questions tagged [jcenter]

JCenter is a Maven repository that was used to find and share popular Apache Maven packages for use by Maven, Gradle, Ivy, SBT, etc. It is now deprecated and read-only.

JCenter was the place to find and share popular Apache Maven packages for use by Maven, Gradle, Ivy, SBT, etc. As of March 31st 2021, it will no longer be maintained by JFrog and has been set in read-only mode. Users of Gradle are warned about relying on its packages and asked to remove use of jcenter().

The official guidance from Android: Developers who publish artifacts on JCenter should migrate their packages to a new host, such as Maven Central. Developers who use dependencies from JCenter will need to find the new location of updated versions of those dependencies.

372 questions
242
votes
4 answers

Android buildscript repositories: jcenter VS mavencentral

The last time I used Android Studio, it generated .gradle files with mavencentral() buildscript repositories whereas now there's jcenter(). Could anyone explain the issues connected with this. Are there any other repos? When should we switch them?…
Jacob
  • 14,949
  • 19
  • 51
  • 74
112
votes
15 answers

Couldn't locate lint-gradle-api-26.1.2.jar for Flutter project

I'm new to Flutter and trying to run the example project when you create a new one. When trying to run it, I have this issue: FAILURE: Build failed with an exception. Where: Build file 'PROJECTPATH/android/app/build.gradle' line: 25 What went…
palmtreesnative
  • 2,835
  • 3
  • 14
  • 22
84
votes
5 answers

Is JCenter down permanently (31 Oct)?

Moderator Note: This appears to be a service outage. Stack Overflow cannot provide support for this issue > Failed to list versions for com.google.http-client:google-http-client-android. > Unable to load Maven meta-data from…
Queen Ellery
  • 481
  • 1
  • 6
  • 11
75
votes
9 answers

Build errors after Android Studio 3.2.1 upgrade

I am building a sample project from Udacity. This was working fine till now, but after upgrading to Android Studio 3.2.1, I am facing the build error below. Gradle version: 4.6 Project link:…
62
votes
4 answers

Error: could not find com.google.gms:google-services:4.2.0

today I was trying to update com.google.gms:google-services to 4.2.0 from 4.1.0 as it's the latest version and recommended by firebase. But I get this error: Could not find com.google.gms:google-services:4.2.0. Searched in the following locations: …
61
votes
8 answers

jcenter.bintray.com is down Error: 502 Bad Gateway

When trying to build my project I am getting the following error: Could not GET 'https://jcenter.bintray.com/androidx/lifecycle/lifecycle-common/maven-metadata.xml'. Received status code 502 from server: Bad Gateway In my build.gradle…
Lucas
  • 1,224
  • 1
  • 14
  • 21
54
votes
11 answers

Android Studio Gradle: Please remove usages of `jcenter()` Maven repository from your build scripts / JCenter is at end of life

In Android Studio 4.2 there is a warning: buildscript { ext.kotlin_version = '1.5.0' repositories { google() //jcenter() mavenCentral() } dependencies { classpath…
user924
  • 8,146
  • 7
  • 57
  • 139
51
votes
3 answers

Android CI build: Could not find aapt2-proto.jar

I have failing build on a Bitbucket CI server: > Could not resolve all artifacts for configuration ':classpath'. > Could not find aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.3.1). Searched in the following locations: …
estn
  • 1,203
  • 1
  • 12
  • 25
45
votes
9 answers

Could not find method jcenter() for arguments [] on repository container

I'm new to Gradle and bintray. I want to publish this project so it is readily available to Maven and SBT users. I am not the original author of this package; it appears to have been abandoned; I just want to publish the current…
Mike Slinn
  • 7,705
  • 5
  • 51
  • 85
36
votes
3 answers

Could not find com.android.tools.build:gradle:4.0.1 ( or any version )

Error : Could not find com.android.tools.build:gradle:4.0.1. Searched in the following…
Sadegh J
  • 1,603
  • 2
  • 9
  • 22
35
votes
4 answers

Could not find manifest-merger.jar (com.android.tools.build:manifest-merger:26.0.1)

I have a unity project I am exporting that project as android studio project while opening the android studio project I am getting this error Gradle sync failed: Could not find manifest-merger.jar …
Ayush Malviya
  • 991
  • 1
  • 7
  • 20
31
votes
7 answers

Could not find aapt2-proto.jar

See this link (as I suspected) has the POM file and no jar. Important Notes: I am using latest version of react native ... v0.57.3 and also latest version of react-native-cli ... v2.0.1 at this time. I have Java 11 installed in my computer. I am…
Harry
  • 951
  • 2
  • 12
  • 18
27
votes
9 answers

Unable to get dependencies from jcenter with a new project

I'm unable to get kotlin pom from jcenter with a new project. All I have done is gone File->New Project and created a new project with no activity. I'm getting the following error when it tries to build: ERROR: Could not GET…
user8810083
  • 599
  • 1
  • 5
  • 21
26
votes
2 answers

jcenter 502 bad gateway after gradle refresh

Unable to connect to jcenter address https://jcenter.bintray.com/ Got an 502 Bad Gateway response And also in my intellj IDE after I click gradle refresh Could not GET 'https://jcenter.bintray.com/com/github/jnr/jffi/maven-metadata.xml'.…
cece2048
  • 1,121
  • 2
  • 11
  • 17
26
votes
7 answers

Gradle error: Could not find any matches for com.android.tools.build:gradle:2.2.+

This is a React Native project. Worked fine on another machine but once moved to my machine it fails. Most solutions I found, suggested adding jcenter() to the reposistories of project level gradle.build. In my case, it was already added. Gradle…
1
2 3
24 25