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 ef70ac3 commit 298aa32Copy full SHA for 298aa32
android/build.gradle
@@ -1,15 +1,20 @@
1
apply plugin: 'com.android.library'
2
3
buildscript {
4
- repositories {
5
- maven { url "https://maven.google.com" }
6
- jcenter()
7
- google()
8
- }
+ // 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 {
9
+ maven { url "https://maven.google.com" }
10
+ jcenter()
11
+ google()
12
+ }
13
- dependencies {
- classpath 'com.android.tools.build:gradle:3.4.1'
14
+ dependencies {
15
+ classpath 'com.android.tools.build:gradle:3.5.1'
16
17
18
}
19
20
def safeExtGet(prop, fallback) {
0 commit comments