Throw exception on missing envvar for Android-related builds (#1001)

This commit is contained in:
moving-bits
2023-01-05 10:45:33 +01:00
committed by GitHub
parent 6b98cb7d89
commit 88d8a7ed8a
4 changed files with 16 additions and 0 deletions

View File

@@ -85,3 +85,7 @@ task run(dependsOn: 'installDebug') {
proc.waitFor()
}
}
if (System.getenv('ANDROID_HOME') == null) {
throw new GradleException("Environment variable ANDROID_HOME needs to be set to SDK folder")
}