Stop recommending android sdk root (#136296)
Fixes https://github.com/flutter/flutter/issues/117245
This commit is contained in:
committed by
GitHub
parent
e83f53e6a0
commit
8ca7d7d136
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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.'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user