首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Sencha应用程序构建本地android包

Sencha应用程序构建本地android包
EN

Stack Overflow用户
提问于 2013-03-01 10:56:07
回答 1查看 1.9K关注 0票数 0

我已经生成了示例应用程序。我能编指南针。如果没有packager.json配置,就可以生成包。我需要android软件包,所以在packager.json中做了如下配置

"sdkPath":"D:/Sench_Touch/android-sdk-windows","platform":"Android", ,但在命令提示符中出现错误,如下所示。如何解决这一问题?有人能告诉me.Thank你吗

代码语言:javascript
复制
 [INF]           Completed compilation.
    [INF]           Processed remote file touch/sencha-touch.js
    [INF]           Processed local file app.js
    [INF]           Minified app.js
    [INF]           Minified resources/css/app.css
    [INF]           Generated app.json
    [INF]           Embedded microloader into index.html
    [INF]           Generating native package
    [INF]           Packaging your application as a native app to D:\Sench_Touch\sen
    cha-touch-2.1.1-gpl\DemoApp\build\DemoApp\native ...
    [ERR]           failed running native packager
    [ERR]           'xcopy' is not recognized as an internal or external command,
    operable program or batch file.
    The system cannot find the path specified.
    The system cannot find the path specified.
    The system cannot find the path specified.
    The system cannot find the path specified.
    The system cannot find the path specified.
    The system cannot find the path specified.
    The system cannot find the path specified.
    The system cannot find the path specified.
    The system cannot find the path specified.
    The system cannot find the path specified.
    The system cannot find the path specified.
    The system cannot find the path specified.
    The system cannot find the path specified.
    The system cannot find the path specified.
    The system cannot find the path specified.
    The system cannot find the path specified.
    The system cannot find the path specified.
    The system cannot find the path specified.
    Created directory D:\Sench_Touch\sencha-touch-2.1.1-gpl\DemoApp\build\DemoApp\na
    tive\src\com\mycompany\myAppID
    Added file D:\Sench_Touch\sencha-touch-2.1.1-gpl\DemoApp\build\DemoApp\native\sr
    c\com\mycompany\myAppID\STActivity.java
    Created directory D:\Sench_Touch\sencha-touch-2.1.1-gpl\DemoApp\build\DemoApp\na
    tive\res
    Created directory D:\Sench_Touch\sencha-touch-2.1.1-gpl\DemoApp\build\DemoApp\na
    tive\bin
    Created directory D:\Sench_Touch\sencha-touch-2.1.1-gpl\DemoApp\build\DemoApp\na
    tive\libs
    Created directory D:\Sench_Touch\sencha-touch-2.1.1-gpl\DemoApp\build\DemoApp\na
    tive\res\values
    Added file D:\Sench_Touch\sencha-touch-2.1.1-gpl\DemoApp\build\DemoApp\native\re
    s\values\strings.xml
    Created directory D:\Sench_Touch\sencha-touch-2.1.1-gpl\DemoApp\build\DemoApp\na
    tive\res\layout
    Added file D:\Sench_Touch\sencha-touch-2.1.1-gpl\DemoApp\build\DemoApp\native\re
    s\layout\main.xml
    Added file D:\Sench_Touch\sencha-touch-2.1.1-gpl\DemoApp\build\DemoApp\native\An
    droidManifest.xml
    Added file D:\Sench_Touch\sencha-touch-2.1.1-gpl\DemoApp\build\DemoApp\native\bu
    ild.xml
    Added file D:\Sench_Touch\sencha-touch-2.1.1-gpl\DemoApp\build\DemoApp\native\pr
    oguard-project.txt
    'C:\Users\User' is not recognized as an internal or external command,
    operable program or batch file.
    ""D:/Sench_Touch/android-sdk-windows\tools\android" create project --target andr
    oid-10 --name MyApplication --activity STActivity --path "D:\Sench_Touch\sencha-
    touch-2.1.1-gpl\DemoApp\build\DemoApp\native\/" --package com.mycompany.myAppID"

    Could not run ant with error: 1
    Failed to package application
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-03-01 14:14:55

您是否将Sencha SDK工具安装在具有空格的目录中?当我在程序文件中安装Sencha Cmd时,我也遇到了同样的问题。在这个问题发生后,我在C:/Sencha中安装了它,并修复了它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15156054

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档