Use Android settings plugin to set NDK version.
Test: presubmit + manual validation of studio sync
Change-Id: I563ebe13169c238f5a17278ce9c0fb0d4b1ad870
diff --git a/settings.gradle b/settings.gradle
index 8b0d2ad..52d6ec0 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -29,6 +29,7 @@
classpath("com.gradle:develocity-gradle-plugin:3.17.2")
classpath("com.gradle:common-custom-user-data-gradle-plugin:2.0.1")
classpath("androidx.build.gradle.gcpbuildcache:gcpbuildcache:1.0.0-beta10")
+ classpath("com.android.settings:com.android.settings.gradle.plugin:8.7.0-alpha02")
}
}
@@ -76,6 +77,11 @@
apply(plugin: "com.gradle.develocity")
apply(plugin: "com.gradle.common-custom-user-data-gradle-plugin")
apply(plugin: "androidx.build.gradle.gcpbuildcache")
+apply(plugin: "com.android.settings")
+
+android {
+ ndkVersion = "27.0.12077973"
+}
def BUILD_NUMBER = System.getenv("BUILD_NUMBER")
develocity {