diff --git a/android/build.gradle b/android/build.gradle index 93b78d4312..61431f190e 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,12 +1,17 @@ buildscript { - repositories { - google() - jcenter() - } + // 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() + } - dependencies { - classpath 'com.android.tools.build:gradle:3.3.1' + dependencies { + classpath("com.android.tools.build:gradle:3.6.2") + } } }