视觉工作室2015年apache cordovo不在模拟器中运行与空白的应用程序项目模板 [英] visual studio 2015 apache cordovo not running in emulator with Blank app project template
问题描述
启动Apache cordova Blank应用程序项目模板后,同时使用Javascript和typescript。当点击Android设备模拟器中的调试/运行时,弹出一个错误,如下所示:
我也做了以下,因为它不能通过注册这个创建java虚拟机:_JAVA_OPTIONS:-Xmx512M
这个bug还是有工作?
其他问题:
如何让visual studio 2015问哪个Android设备模拟器使用(类似于eclipse),而不是从列表中使用第一个模拟器不同的模拟器创建。
如注释中所述,此错误是通过重新安装Android SDK解决的。 >
关于如何告诉Visual Studio在模拟器列表中显示不同的模拟器的第二个问题 - 目前没有办法。默认的Android SDK模拟器是硬编码的选择,如果安装了Andoird的Visual Studio模拟器也是一个选项。它可能运行在其他仿真器,如Genymotion,通过加载模拟器,然后部署到设备目标(没有插入设备)。
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.
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).
这篇关于视觉工作室2015年apache cordovo不在模拟器中运行与空白的应用程序项目模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!