From 3ac15a7f9c44354b15395a2f4939c6c299425a15 Mon Sep 17 00:00:00 2001 From: Topandhi <85047888+Topandhi@users.noreply.github.com> Date: Tue, 9 Aug 2022 08:38:56 +0700 Subject: [PATCH] Update build.gradle Allow insecure protocols, android gradle error --- android/build.gradle | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 55fa50df..4f256a8e 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,7 +1,11 @@ buildscript { repositories { - jcenter { url "http://jcenter.bintray.com/" } - maven {url "http://repo.spring.io/plugins-release/"} + jcenter { url "http://jcenter.bintray.com/" + allowInsecureProtocol = true + } + maven { url "http://repo.spring.io/plugins-release/" + allowInsecureProtocol = true + } mavenCentral() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm @@ -9,6 +13,7 @@ buildscript { } maven { url 'https://maven.google.com' + allowInsecureProtocol = true } } @@ -40,8 +45,12 @@ android { } repositories { - jcenter { url "http://jcenter.bintray.com/" } - maven {url "http://repo.spring.io/plugins-release/"} + jcenter { url "http://jcenter.bintray.com/" + allowInsecureProtocol = true + } + maven { url "http://repo.spring.io/plugins-release/" + allowInsecureProtocol = true + } mavenCentral() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm @@ -49,6 +58,7 @@ repositories { } maven { url 'https://maven.google.com' + allowInsecureProtocol = true } }