Apache Cordova空白应用程序模拟器或设备构建失败代码1 [英] Apache Cordova Blank App Emulator or Device Build Fail code 1

查看:53
本文介绍了Apache Cordova空白应用程序模拟器或设备构建失败代码1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用VS2015预览版,我创建了一个空白的cordova应用程序(使用安装的打字稿模板).
我正在尝试为Android构建调试,使用涟漪仿真器可以正常工作.但是,当我选择VS模拟器或使用AVD管理器创建的其他模拟器时,它就会失败(尝试构建到设备时也会遇到同样的失败).

Using VS2015 Preview, I have created a blank cordova app (Using the typescript installed template).
I'm trying to build a debug for android, using the ripple emulator works fine. But when I select the VS emulator, or other emulators created using the AVD manager, then it fails (I also get this same failure attempting to build to the device).

错误是: C:\ WorkspaceVS2015Mobile \ BlankCordovaApp1 \ BlankCordovaApp1 \ bld \ Debug \ platforms \ android \ cordova \ build.bat :命令失败,退出代码为1 BlankCordovaApp1 MDAVSCLI 1

The Error is: C:\WorkspaceVS2015Mobile\BlankCordovaApp1\BlankCordovaApp1\bld\Debug\platforms\android\cordova\build.bat: Command failed with exit code 1 BlankCordovaApp1 MDAVSCLI 1

我已经检查了系统变量,并且ADT_HOME,ANT_HOME,GIT_HOME和JAVA_HOME都似乎设置正确,并且具有正确的设置.小路.我试图清除工具选项中的cordova缓存.

我能够使用命令提示符运行build.bat文件,并收到成功消息,但确实生成了apk文件,但是我认为没有理由必须这样做.这种方式也不允许 我可以实时调试程序吗?

I am able to run the build.bat file using command prompt, and receive a success message and the apk file does get generated, but I see no reason why I should have to do it this way. This way also does not allow me to live debug the program??

任何建议表示赞赏.

推荐答案

您好,理查德,

Hi Richard,

此问题仅在VS2015 Preview上发生吗?您可以在VS 2013上尝试一下吗?

Is this issue only happens on VS2015 Preview? Could you try this on VS 2013?


这篇关于Apache Cordova空白应用程序模拟器或设备构建失败代码1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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