From 8f4ca83c97cd48eba4da905f3c996cd38dc6abd3 Mon Sep 17 00:00:00 2001 From: Todor Totev Date: Mon, 6 Apr 2015 16:08:06 +0300 Subject: [PATCH] Support Google API images in Andorid Emulator. See https://github.com/NativeScript/nativescript-cli/issues/175 --- mobile/android/android-emulator-services.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mobile/android/android-emulator-services.ts b/mobile/android/android-emulator-services.ts index 2db2c805..87bb2ca2 100644 --- a/mobile/android/android-emulator-services.ts +++ b/mobile/android/android-emulator-services.ts @@ -365,7 +365,11 @@ class AndroidEmulatorServices implements Mobile.IEmulatorPlatformServices { var platform = target.replace('android-', ''); var platformNumber = +platform; if (isNaN(platformNumber)) { - if (platform === "L") { + // this might be a google image + platform = target.split(":")[2]; + if (platform) { + platformNumber = +platform; + } else if (platform === "L") { // Android SDK 20 was actually marked with the letter L platformNumber = 20; } }