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

时间:2014-03-25 05:44:55

标签: android cordova ant sencha-touch-2

无法在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

1 个答案:

答案 0 :(得分:0)

检查以下步骤:

  1. cordova create testapp com.example.testapp TestApp

  2. cd testapp

  3. cordova platform add android

  4. cordova build android

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

    1. cordova run android
    2. 从上面的代码段中,您的系统中似乎已安装cordova。 注意:以上CLI步骤适用于cordova版本3.x