sencha-touch - sencha 应用程序构建 native 失败。给出错误 : <x-load-properties> does not support the <file> nested element

标签 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

最佳答案

对于此版本的 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/

相关文章:

javascript - 如何自定义actionSheet和actionSheet按钮的extjs大小?

javascript - 如何解析下面的简单 json 响应?

javascript - Sencha touch 中的动态分段按钮

javascript + phoneGap - 如何检测通话中的时间

android - 如何在 Eclipse 中运行 Sencha Touch 应用程序

android - Android 上的 Flash 支持

javascript - 点击功能中的 sencha touch HTMLDivElement

android - 如何更改 PushNotification 的消息内容?

extjs - Sencha 触摸 : How to load controller dynamically

ios - 适用于 iPad 的单页 Web 应用程序?