Commit 639532bd authored by Adam Barth's avatar Adam Barth Committed by GitHub

Don't pick up Android SDK from local engine (#4801)

It can cause trouble if the user has a newer Android SDK installed normally.
Instead, just use the normal Android SDK.
parent 107cbd31
......@@ -165,13 +165,8 @@ class FlutterCommandRunner extends CommandRunner {
}
// The Android SDK could already have been set by tests.
if (!context.isSet(AndroidSdk)) {
if (enginePath != null) {
context[AndroidSdk] = new AndroidSdk('$enginePath/third_party/android_tools/sdk');
} else {
context[AndroidSdk] = AndroidSdk.locateAndroidSdk();
}
}
if (!context.isSet(AndroidSdk))
context[AndroidSdk] = AndroidSdk.locateAndroidSdk();
if (globalResults['version']) {
flutterUsage.sendCommand('version');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment