We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7c722a commit 696d9ebCopy full SHA for 696d9eb
1 file changed
android/build.gradle
@@ -14,12 +14,19 @@ 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
+ //noinspection GradleDependency
28
+ classpath("com.android.tools.build:gradle:3.5.3")
29
30
}
31
32
0 commit comments