From cd0d7c8ba2d29644f5cd8a1562311c2edebfbb82 Mon Sep 17 00:00:00 2001 From: Nils Reichardt Date: Tue, 17 May 2022 18:53:28 +0200 Subject: [PATCH] Replace `jcenter` with `mavenCentral` in `build.gradle` (#228) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 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 👍 --- app/android/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/android/build.gradle b/app/android/build.gradle index e78817fd1..002809dad 100644 --- a/app/android/build.gradle +++ b/app/android/build.gradle @@ -3,7 +3,7 @@ buildscript { repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -17,7 +17,7 @@ buildscript { allprojects { repositories { google() - jcenter() + mavenCentral() } }