Skip to content

Commit 6d56a23

Browse files
dulmandakhfacebook-github-bot
authored andcommitted
add google maven repo in android project template (#19712)
Summary: This PR will add Google maven repo to RN project template that contains com.android.support:appcompat-v7:26.1.0, thus fixes `react-native run-android` using version 0.56.0-rc.1 CI is Green - https://circleci.com/gh/dulmandakh/react-native/235 new Android projects will build and run just fine. Closes #19712 Differential Revision: D8433730 Pulled By: hramos fbshipit-source-id: b7d5a1cd5a97b1c4aad2a307158d6dbfcf9a42a5
1 parent 75e49a0 commit 6d56a23

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

local-cli/templates/HelloWorld/android/build.gradle

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
buildscript {
44
repositories {
55
jcenter()
6+
maven {
7+
url 'https://maven.google.com/'
8+
name 'Google'
9+
}
610
}
711
dependencies {
812
classpath 'com.android.tools.build:gradle:2.2.3'
@@ -20,5 +24,9 @@ allprojects {
2024
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
2125
url "$rootDir/../node_modules/react-native/android"
2226
}
27+
maven {
28+
url 'https://maven.google.com/'
29+
name 'Google'
30+
}
2331
}
2432
}

0 commit comments

Comments
 (0)