无法解决Phone Gap [error] cmd:命令失败,退出代码为ENOENT 3

问题描述 投票:0回答:1

无法在android中运行sencha / phonegap应用程序..获取异常“cmd:命令失败,退出代码ENOENT 3”这里是我安装的版本..

D:\testapp>sencha -version   
Sencha Cmd v4.0.1.45
[ERR] No such property : version
 at com.sencha.cli.AbstractCommand$Properties.getProperty(AbstractCommand.ja
va:417)
 at com.sencha.cli.AbstractCommand.parseConfigParam(AbstractCommand.java:441
)
 at com.sencha.cli.AbstractCommand.processConfigParam(AbstractCommand.java:4
91)
 at com.sencha.cli.AbstractCommand.configure(AbstractCommand.java:114)
 at com.sencha.command.Sencha.main(Sencha.java:136)


D:\testapp>phonegap -version  
3.4.0-0.19.7

D:\testapp>cordova -version  
3.4.0-0.1.3

D:\testapp>ant -version  
Apache Ant(TM) version 1.9.3 compiled on December 23 2013

D:\testapp>phonegap run android  
[phonegap] detecting Android SDK environment...  
[phonegap] using the local environment  
[phonegap] adding the Android platform...  
[error] cmd: Command failed with exit code ENOENT  

D:\testapp>phonegap build android  
[phonegap] detecting Android SDK environment...  
[phonegap] using the local environment  
[phonegap] adding the Android platform...   
[error] cmd: Command failed with exit code ENOENT  

Thanks in advance
android cordova ant sencha-touch-2
1个回答
0
投票

请检查以下步骤:

  1. cordova create testapp com.example.testapp TestApp
  2. cd testapp
  3. cordova platform add android
  4. cordova build android

在此之后,您应该复制您的项目并将其粘贴到您的cordova项目的直接www文件夹中。然后运行

  1. cordova run android

从上面的代码片段来看,您的系统中已经安装了cordova。注意:以上CLI步骤适用于cordova版本3.x.

© www.soinside.com 2019 - 2024. All rights reserved.