我正在使用 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
最佳答案
对于此版本的 sencha,创建构建需要“st-res”目录。其中包含 AndroidManifest.xml 和 nimblekit.jar。并且还必须在 packager.json 文件中进行以下更改。
"androidAPILevel":"14",
"sdkPath":"/home/.android-sdk-linux" /* path to android-sdk-linux */
关于sencha-touch - sencha 应用程序构建 native 失败。给出错误 : <x-load-properties> does not support the <file> nested element,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21258771/