File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
22
33buildscript {
4- repositories {
5- maven { url " https://maven.google.com" }
6- jcenter()
7- google()
8- }
4+ // The Android Gradle plugin is only required when opening the android folder stand-alone.
5+ // This avoids unnecessary downloads and potential conflicts when the library is included as a
6+ // module dependency in an application project.
7+ if (project == rootProject) {
8+ repositories {
9+ maven { url " https://maven.google.com" }
10+ jcenter()
11+ google()
12+ }
913
10- dependencies {
11- classpath ' com.android.tools.build:gradle:3.4.1'
12- }
14+ dependencies {
15+ classpath ' com.android.tools.build:gradle:3.5.1'
16+ }
17+ }
1318}
1419
1520def safeExtGet (prop , fallback ) {
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-5.4.1 -all.zip
6+ distributionUrl =https\://services.gradle.org/distributions/gradle-5.6.3 -all.zip
You can’t perform that action at this time.
0 commit comments