sencha应用程序构建本机失败。给出错误:<x-load-properties>不支持<file>嵌套元素</file> </x-load-properties>

时间:2014-01-21 12:54:48

标签: sencha-touch

我正在使用sencha touch 2.3.1和cmd 3.1.2。但是在使用命令“sencha app build native”创建buid时,它会出错:[ERR]执行此行时发生以下错误:     /path_to_app/.sencha/app/init-impl.xml:62:不支持嵌套元素

$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-in-path:
[INF] 
[INF] find-cmd-in-environment:
[INF] 
[INF] find-cmd-in-shell:
[INF] 
[INF] init-cmd:
[INF]      [echo] Using Sencha Cmd from /home/bin/Sencha/Cmd/3.1.2.342 for  /path_to_app/build.xml
[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
[ERR] The following error occurred while executing this line:
/path_to_app/.sencha/app/init-impl.xml:62: <x-load-properties> does      not support the <file> nested element

2 个答案:

答案 0 :(得分:1)

对于这个版本的sencha,为了创建构建,需要“st-res”目录。它包含AndroidManifest.xml,nimblekit.jar。并且还必须在packager.json文件中进行以下更改。

"androidAPILevel":"14",
"sdkPath":"/home/.android-sdk-linux"  /* path to android-sdk-linux */

答案 1 :(得分:0)

我遇到了同样的问题所以我只是在我的机器上升级了Sencha: $ sudo sencha upgrade 如果您愿意,请记住关闭并重新打开终端窗口。然后当你使用上面的 命令再次,你应该看到像:

Sencha Cmd v4.0.2.67
[INF] Determining the latest version of Sencha Cmd
[INF] The latest version of Sencha Cmd is 4.0.2.67
[INF] Sencha Cmd 4.0.2.67 is this version.

我希望这会有所帮助