We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9da8c72 commit b762497Copy full SHA for b762497
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
- mavenCentral()
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
+ mavenCentral()
24
+ }
25
+
26
+ dependencies {
27
+ classpath 'com.android.tools.build:gradle:3.4.1'
28
29
}
30
31
0 commit comments