Sencha Touch 2 KitchenSink 示例构建失败

Posted

技术标签:

【中文标题】Sencha Touch 2 KitchenSink 示例构建失败【英文标题】:Sencha Touch 2 KitchenSink Example Build Fails 【发布时间】:2013-06-17 22:53:58 【问题描述】:

我正在尝试从 Sencha Touch 2.2.1 GPL 包构建 Kitchensink 示例。我正在使用 Sencha CMD 3.1.2.342 但有些东西失败了。这是日志:

C:\wamp2.1\www\sencha\examples\kitchensink>sencha app build testing
Sencha Cmd v3.1.2.342
[INF]
[INF] init-plugin:
[INF]
[INF] cmd-root-plugin.init-properties:
[INF]
[INF] init-properties:
[INF]
[INF] init-sencha-command:
[INF]
[INF] init:
[INF]
[INF] app-build-impl:
[INF]
[INF] -before-init-local:
[INF]
[INF] -init-local:
[INF]
[INF] -after-init-local:
[INF]
[INF] init-local:
[INF]
[INF] find-cmd:
[INF]
[INF] -before-init:
[INF]
[INF] -init:
[INF] Initializing Sencha Cmd ant environment
[INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml
[INF]
[INF] -after-init:
[INF]
[INF] init:
[INF]
[INF] -before-build:
[INF]
[INF] sass:
[INF]
[INF] -before-sass:
[INF]
[INF] -sass:
[INF] [shellscript]
[INF] [shellscript] C:\wamp2.1\www\sencha\examples\kitchensink\resources\sass>co
mpass compile --boring --force
[INF] [shellscript] identical ../css/bb10.css
[INF] [shellscript] identical ../css/sencha-touch.css
[INF] [shellscript] identical ../css/wp.css
[INF]
[INF] -after-sass:
[INF]
[INF] page:
[INF]
[INF] -before-page:
[INF]
[INF] -page:
[ERR] The following error occurred while executing this line:
C:\wamp2.1\www\sencha\examples\kitchensink\.sencha\app\build-impl.xml:127: The f
ollowing error occurred while executing this line:
C:\wamp2.1\www\sencha\examples\kitchensink\.sencha\app\build-impl.xml:121: javax
.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: Referenc
eError: "SenchaLogManager" is not defined. (<Unknown source>#6) in <Unknown sour
ce> at line number 6

知道有什么问题吗?什么是“SenchaLogManager”?

注意:自定义应用程序正在构建中

谢谢

【问题讨论】:

甚至,任何示例目录应用程序都无法构建...并重复...自己的应用程序构建良好。 【参考方案1】:

在sencha论坛上查看以下帖子后

Thread1

Thread2

煎茶论坛有人发帖如下

解决了。找到 Sencha Cmd v3.1.1.270 并安装。使用 st2.2 现在一切正常

可以看到可能是sencha touch frame work和sencha CMD不匹配

【讨论】:

那么,您是否建议将 Sencha CMD 降级到 3.1.1.270?以后的版本不应该解决吗?

以上是关于Sencha Touch 2 KitchenSink 示例构建失败的主要内容,如果未能解决你的问题,请参考以下文章

将 Sencha Touch 1.X 升级到 Sencha Touch 2.X

在 mac 上安装 sencha-touch 2.1

Sencha Touch 2 或 DHTMLX Touch

touch-chart 1.0 是不是与 sencha touch 2.0 兼容?

Sencha Touch 2 在轮播下方添加导航栏

Sencha Touch - sencha touch js 大小的性能问题