From 018b7485eb42d8e16c8c462ac4886f8286de2c1b Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Mon, 28 Oct 2019 16:09:11 -0700 Subject: [PATCH] Updated Jitpack URL in android template to fix gradle errors (#26660) Summary: Running `react-native run-android` fails for me with the error saying connection timed out for fetching a library from jitpack. This seems to be a well known issue mentioned around. The issue is resolved by updating the url from `https://jitpack.io` to `https://www.jitpack.io` . ## Changelog [Android] [Fixed] - Updated template/android/build.gradle with a modified jitpack URL Pull Request resolved: https://github.com/facebook/react-native/pull/26660 Test Plan: 1. Create a new react-native app with `react-native init ` 2. Run `react-native run-android` 3. App runs without modifications! Differential Revision: D18189653 Pulled By: cpojer fbshipit-source-id: 3c73bb9b7108755bd82444149c997a927965f3e9 --- template/android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/android/build.gradle b/template/android/build.gradle index f7abd9e70a22e5..2322584e5a1c7f 100644 --- a/template/android/build.gradle +++ b/template/android/build.gradle @@ -33,6 +33,6 @@ allprojects { google() jcenter() - maven { url 'https://jitpack.io' } + maven { url 'https://www.jitpack.io' } } }