From 78d9a1be9ff5e910c9dc096d5a2426f4fb45decf Mon Sep 17 00:00:00 2001 From: Bartosz Klonowski <70535775+BartoszKlonowski@users.noreply.github.com> Date: Thu, 16 Sep 2021 12:35:03 +0200 Subject: [PATCH 1/2] Use full address for maven in build.gradle According to: https://github.com/react-native-camera/react-native-camera/issues/2490#issuecomment-532795908 the fix for failing build with maven issues is to use the full address of jitpack. This commit changes it to example build.gradle. --- example/android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/android/build.gradle b/example/android/build.gradle index bf168fae..2ae89ab3 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -33,6 +33,6 @@ allprojects { google() jcenter() - maven { url 'https://jitpack.io' } + maven { url 'https://www.jitpack.io' } } } From 9a90d978bc8ae8c97a19651a0aaf822e5047b7e3 Mon Sep 17 00:00:00 2001 From: Bartosz Klonowski <70535775+BartoszKlonowski@users.noreply.github.com> Date: Thu, 16 Sep 2021 15:36:30 +0200 Subject: [PATCH 2/2] Use mavenCentral instead of JCenter --- example/android/build.gradle | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/example/android/build.gradle b/example/android/build.gradle index 2ae89ab3..89eb2214 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -9,7 +9,7 @@ buildscript { } repositories { google() - jcenter() + mavenCentral() } dependencies { classpath("com.android.tools.build:gradle:4.1.0") @@ -32,7 +32,10 @@ allprojects { } google() - jcenter() - maven { url 'https://www.jitpack.io' } + mavenCentral() + maven { + url 'https://maven.google.com/' + name 'Google' + } } }