File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,19 @@ def _targetSdkVersion = safeExtGet('targetSdkVersion', 28)
14
14
def _minSdkVersion = safeExtGet(' minSdkVersion' , 16 )
15
15
16
16
buildscript {
17
- repositories {
18
- google()
19
- jcenter()
20
- }
21
- dependencies {
22
- classpath ' com.android.tools.build:gradle:3.4.1'
17
+ // The Android Gradle plugin is only required when opening the android folder stand-alone.
18
+ // This avoids unnecessary downloads and potential conflicts when the library is included as a
19
+ // module dependency in an application project.
20
+ if (project == rootProject) {
21
+ repositories {
22
+ google()
23
+ jcenter()
24
+ }
25
+
26
+ dependencies {
27
+ // noinspection GradleDependency
28
+ classpath(" com.android.tools.build:gradle:3.5.3" )
29
+ }
23
30
}
24
31
}
25
32
You can’t perform that action at this time.
0 commit comments