vims liu
vims liu

Reputation: 643

visual studio 2015 apache cordovo not running in emulator with Blank app project template

after initiating the Apache cordova Blank application project template using both under Javascript and typescript. When clicking the debug/run in android device emulator, an error popup as shown below:

enter image description here

I also did the following because it wasn't able to create java virtual machine by registering this: _JAVA_OPTIONS:-Xmx512M

is this a bug or is there a work around?

Additional question: how to let visual studio 2015 ask which android device emulator to use (similar to eclipse) rather than using the first emulator from a list of different emulator created.

Upvotes: 4

Views: 2135

Answers (1)

Jordan Matthiesen
Jordan Matthiesen

Reputation: 1480

As mentioned in the comments, this error was solved by re-installing the Android SDK.

Regarding the second question about how to tell Visual Studio to show different emulators in the emulator list - there currently isn't a way to do that. The default Android SDK emulator is a hardcoded choice, and the Visual Studio Emulator for Andoird is also an option if installed. It is possibly to run on other emulators, such as Genymotion, by loading the emulator and then deploying to the Device target (without a device plugged in).

Upvotes: 1

Related Questions