Visual Studio的2015年阿帕奇cordovo与空白应用程序项目模板模拟器不运行 [英] visual studio 2015 apache cordovo not running in emulator with Blank app project template

本文介绍了Visual Studio的2015年阿帕奇cordovo与空白应用程序项目模板模拟器不运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

开始同时使用下,Javascript和打字稿Apache的科尔多瓦空白应用程序项目模板之后。如下图所示在Android设备仿真器时点击调试/运行,一个错误弹出:

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:

在这里输入的形象描述

我也做了以下内容,因为它无法通过注册它来创建Java虚拟机:_JAVA_OPTIONS:-Xmx512M

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?

其他问题:
如何让视觉工作室2015年提出要使用的Andr​​oid设备仿真器(类似于日食),而不是使用第一个仿真器从创建不同的仿真器的列表。

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.

推荐答案

正如评论中提到,这个错误是由重新安装了Android SDK解决。

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

至于怎样告诉Visual Studio中显示的模拟器列表模拟器不同的第二个问题 - 目前还没有办法做到这一点。默认的Andr​​oid SDK模拟器是一个很难codeD的选择,并为Andoird在Visual Studio模拟器也是一个选项,如果安装。这可能是由加载仿真器,然后部署到目标设备(没有插入设备)上的其他仿真器,如Genymotion运行。

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

这篇关于Visual Studio的2015年阿帕奇cordovo与空白应用程序项目模板模拟器不运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆