Skip to content

Conversation

regnerus
Copy link

This PR updates the repository configuration in android/build.gradle to replace the deprecated jcenter() repository with mavenCentral().

Problem

JCenter was officially shut down by JFrog on February 1, 2022. As of Gradle 7.0+, jcenter() is deprecated, and in Gradle 9.0+, it throws an error:

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

This prevents the library from being used in projects with newer Gradle versions.

Solution

Replace jcenter() with mavenCentral() in the repositories block. Maven Central hosts all the same artifacts that were available on JCenter and is the recommended alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant