0

サンプルアプリを作成しました。コンパスコンパイルができます。packager.json構成なしでパッケージを生成できます。androidパッケージが必要なので、packager.jsonで
「platform」:「Android」、「sdkPath」:「D:/ Sench_Touch / android-sdk-windows」のように構成しましたが、コマンドプロンプトで次のようなエラーが発生します。この問題を解決するにはどうすればよいですか?誰か教えてもらえますか

 [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
4

2 に答える 2

0

スペース名のあるディレクトリにSenchaSDKツールをインストールしましたか?プログラムファイルにSenchaCmdをインストールしたときに同じ問題が発生しました。この問題の後、C:/ Senchaにインストールし、修正しました。

于 2013-03-01T14:14:55.523 に答える
0

アプリフォルダーから実行

煎茶cordovainit

次に、cordova.local.properties=androidを変更します

保存する。

sencha appbuildnativeを実行 する

ST2.3.1を使用している場合は、cordova \ platfomrs \ android \ant-build*-*。apkフォルダーにapp_name-debug.apkがあります:-)

注:' npm installcordova-gを使用してcordovaをインストールする必要があります

于 2014-08-28T12:06:43.183 に答える