We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eda9a58 commit 6d14ca0Copy full SHA for 6d14ca0
build.gradle.kts
@@ -11,7 +11,12 @@ if (localPropertiesFile.exists()) {
11
localProperties.load(localPropertiesFile.inputStream())
12
}
13
14
-val sdkDir: String by extra(localProperties.getProperty("sdk.dir"))
+val sdkDir: String by extra(
15
+ localProperties.getProperty("sdk.dir")
16
+ ?: System.getenv("ANDROID_HOME")
17
+ ?: System.getenv("ANDROID_SDK_ROOT")
18
+ ?: ""
19
+)
20
21
fun String.execute(currentWorkingDir: File = file("./")): String {
22
val byteOut = ByteArrayOutputStream()
0 commit comments