Replace ANDROID_HOME user messages with ANDROID_SDK_ROOT (#59867)

This commit is contained in:
Jenn Magder
2020-06-22 18:43:04 -07:00
committed by GitHub
parent 9470b9e2ce
commit 6a2bc2617e
11 changed files with 23 additions and 21 deletions

View File

@@ -1113,7 +1113,7 @@ Map<String, String> _initGradleEnvironment() {
? Platform.environment['ANDROID_SDK_ROOT']
: Platform.environment['ANDROID_HOME'];
if (androidSdkRoot == null || androidSdkRoot.isEmpty) {
print('${red}Could not find Android SDK; set ANDROID_SDK_ROOT (or ANDROID_HOME).$reset');
print('${red}Could not find Android SDK; set ANDROID_SDK_ROOT.$reset');
exit(1);
}
return <String, String>{