生成Sencha Touch App失败

时间:2014-08-18 03:31:39

标签: extjs installation sencha-touch sencha-touch-2.3

我在生成新的Sencha Touch应用程序时遇到问题。我已经下载了Sencha SDK,Ruby和Sencha CMD。当我使用sencha时,会打印出sencha版本和帮助。

当我使用ff命令生成Sencha Touch应用程序时,我遇到了Build Failed:

  

sencha -sdk [sencha sdk location]生成app -name MyApp -path [项目位置]

问题:

Sencha Cmd v5.0.1.231
[INF] Processing Build Descriptor : default
[INF] Loading app json manifest...
[ERR] Failed to resolve dependency Ext.app.Application for file MyApp.app.$Application
[ERR] 
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.app.Application
[ERR]   at org.apache.tools.ant.Project.e
[ERR] xecuteSortedTargets(Project.java:1399)
[ERR] 
[ERR] Total time: 1 second
[ERR] 
[ERR] BUILD FAILED
[ERR] (installation dir)\bin\Sencha\Cmd\5.0.1.231\plugin.xml:303: The following error occurred while executing this line:
[ERR] (installation dir)\bin\Sencha\Cmd\5.0.1.231\plugins\touch\2.3\plugin.xml:334: The following error occurred while executing this line:
[ERR] (installation dir)\workspace-sencha\.sencha\app\build-impl.xml:373: The following error occurred while executing this line:
[ERR] (installation dir)\workspace-sencha\.sencha\app\init-impl.xml:258: com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.app.Application
[ERR]   at sun.reflect.GeneratedMethodAccesso
[ERR] r23.invoke(Unknown Source)
[ERR] 
[ERR] Total time: 5 seconds
[ERR] The following error occurred while executing this line:
(installation dir)\bin\Sencha\Cmd\5.0.1.231\plugins\touch\2.3\plugin.xml:334: The following error occurred while executing this line:
(installation dir)\workspace-sencha\.sencha\app\build-impl.xml:373: The following error occurred while executing this line:
(installation dir)\workspace-sencha\.sencha\app\init-impl.xml:258: com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.app.Application

我已经3天了,不知道我是否错过了什么。

提前致谢!

1 个答案:

答案 0 :(得分:0)

尝试使用-d选项首先查看更多详细信息

sencha -d -sdk [sencha sdk location] generate app -name MyApp -path [project location]