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.
This commit is contained in:
Adam Barth
2016-06-30 15:47:56 -07:00
committed by GitHub
parent 107cbd3185
commit 639532bd51

View File

@@ -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');