Skip to content

Commit

Permalink
fix(Android): Make content of buildscript optional (#245)
Browse files Browse the repository at this point in the history
Fix gradle build error where it can't find specified version of gradle.
  • Loading branch information
dmitrybolt authored Apr 22, 2020
1 parent 5126ab5 commit 53d3456
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,16 @@ android {
}

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
if (project == rootProject) {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
}

Expand Down

0 comments on commit 53d3456

Please sign in to comment.