fix: ANDROID_HOME is the new default, to check first and give advice (#1471)

This commit is contained in:
Alexis THOMAS
2023-04-10 01:43:11 +02:00
committed by GitHub
parent 016018513e
commit 841710edf7
3 changed files with 32 additions and 32 deletions
+2 -2
View File
@@ -83,9 +83,9 @@ String doFindLatestInstalledBuildTools(String minBuildToolsVersionString) {
String getAndroidSdkDir() {
def rootDir = project.rootDir
def androidSdkDir = null
String envVar = System.getenv("ANDROID_SDK_ROOT")
String envVar = System.getenv("ANDROID_HOME")
if (envVar == null) {
envVar = System.getenv("ANDROID_HOME")
envVar = System.getenv("ANDROID_SDK_ROOT")
}
def localProperties = new File(rootDir, 'local.properties')