Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace jcenter with mavenCentral in build.gradle #228

Merged
merged 3 commits into from
May 17, 2022

Conversation

nilsreichardt
Copy link
Member

@nilsreichardt nilsreichardt commented May 17, 2022

Description

jcenter is deprecated. This is the reason why an Android build could fail with this error message:

* What went wrong:
Could not determine the dependencies of task ':app:minifyProdReleaseWithR8'.
> Could not resolve all dependencies for configuration ':app:prodReleaseRuntimeClasspath'.
   > Could not determine artifacts for com.google.android.exoplayer:exoplayer-hls:2.12.1
      > Could not get resource 'https://jcenter.bintray.com/com/google/android/exoplayer/exoplayer-hls/2.12.1/exoplayer-hls-2.12.1.aar'.
         > Could not HEAD 'https://jcenter.bintray.com/com/google/android/exoplayer/exoplayer-hls/2.12.1/exoplayer-hls-2.12.1.aar'.
            > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/34.95.74.180] failed: connect timed out

For testing, I used the Codemagic Linux Premium VMs because with these was the issue reproducible.

I replaced jcenter with mavenCentral and the builds on the Linux Premium VMs are working again. Builds on my M1 MacBook Pro also working 👍

@nilsreichardt nilsreichardt changed the title Replace jcenter with mavenCentral Replace jcenter with mavenCentral in build.gradle May 17, 2022
Copy link
Collaborator

@Jonas-Sander Jonas-Sander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions
Copy link

github-actions bot commented May 17, 2022

Visit the preview URL for this PR (updated for commit e64a750):

https://sharezone-test--pr228-replace-jcenter-lati6764.web.app

(expires Tue, 24 May 2022 16:43:57 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

@nilsreichardt nilsreichardt enabled auto-merge (squash) May 17, 2022 11:56
@nilsreichardt nilsreichardt disabled auto-merge May 17, 2022 11:56
@nilsreichardt nilsreichardt enabled auto-merge (squash) May 17, 2022 16:35
@nilsreichardt nilsreichardt merged commit cd0d7c8 into main May 17, 2022
@nilsreichardt nilsreichardt deleted the replace-jcenter branch May 17, 2022 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants