From 7820694a15e41513c6d321e5640f94d9a1e241f0 Mon Sep 17 00:00:00 2001 From: "@odemolliens" Date: Thu, 30 May 2024 10:55:01 +0200 Subject: [PATCH] Update build.gradle - proper patch --- android/build.gradle | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index a8351bbb2..6f02a8371 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -41,12 +41,15 @@ buildscript { allprojects { repositories { all { repo -> - println repo.url.toString() - if (repo.url.toString().contains("jcenter.bintray.com") || repo.url.toString().contains("jitpack.io")) { - project.logger.warn "Repository ${repo.url} removed." - remove repo - google() - mavenCentral() + println repo.toString() + if (repo instanceof org.gradle.api.artifacts.repositories.MavenArtifactRepository) { + println repo.url.toString() + if (repo.url.toString().contains("jcenter.bintray.com") /*|| repo.url.toString().contains("jitpack.io")*/) { + project.logger.warn "Repository ${repo.url} removed." + remove repo + google() + mavenCentral() + } } } maven {