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

╄→尐↘猪︶ㄣ 提交于 2019-12-10 15:55:47

问题


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:

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.


回答1:


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).



来源:https://stackoverflow.com/questions/32221589/visual-studio-2015-apache-cordovo-not-running-in-emulator-with-blank-app-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!