Stop recommending android sdk root (#136296)

Fixes https://github.com/flutter/flutter/issues/117245
This commit is contained in:
Christopher Fujino
2023-10-11 15:04:59 -06:00
committed by GitHub
parent e83f53e6a0
commit 8ca7d7d136
9 changed files with 19 additions and 19 deletions

View File

@@ -107,7 +107,7 @@ String get _androidHome {
final String? androidHome = Platform.environment['ANDROID_HOME'] ??
Platform.environment['ANDROID_SDK_ROOT'];
if (androidHome == null || androidHome.isEmpty) {
throw Exception('Environment variable `ANDROID_SDK_ROOT` is not set.');
throw Exception('Environment variable `ANDROID_HOME` is not set.');
}
return androidHome;
}

View File

@@ -1346,7 +1346,7 @@ String get adbPath {
if (androidHome == null) {
throw const DeviceException(
'The ANDROID_SDK_ROOT environment variable is '
'The ANDROID_HOME environment variable is '
'missing. The variable must point to the Android '
'SDK directory containing platform-tools.'
);