We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 856bba2 commit 6de6985Copy full SHA for 6de6985
android/build.gradle
@@ -1,11 +1,15 @@
1
buildscript {
2
- repositories {
3
- google()
4
- jcenter()
5
- }
6
-
7
- dependencies {
8
- 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()
+ jcenter()
9
+ }
10
+ dependencies {
11
+ classpath 'com.android.tools.build:gradle:3.5.0'
12
13
}
14
15
0 commit comments