We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7c722a commit 4c17eebCopy full SHA for 4c17eeb
android/build.gradle
@@ -14,12 +14,18 @@ def _targetSdkVersion = safeExtGet('targetSdkVersion', 28)
14
def _minSdkVersion = safeExtGet('minSdkVersion', 16)
15
16
buildscript {
17
- repositories {
18
- google()
19
- jcenter()
20
- }
21
- dependencies {
22
- classpath 'com.android.tools.build:gradle:3.4.1'
+ // The Android Gradle plugin is only required when opening the android folder stand-alone.
+ // This avoids unnecessary downloads and potential conflicts when the library is included as a
+ // module dependency in an application project.
+ if (project == rootProject) {
+ repositories {
+ google()
23
+ jcenter()
24
+ }
25
+
26
+ dependencies {
27
+ classpath("com.android.tools.build:gradle:3.5.3")
28
29
}
30
31
0 commit comments