0

長い間、私は sencha touch 2.1 と phonegap を統合しようと試みてきましたが、うまくいきませんでした。数日前、「Sencha Cordova Builder - PhoneGap プロジェクトの自動ビルド」を見つけました。sencha touch を phonegap、インストール済みの JDK、Android SDK、ant、adb と統合するためのすべての手順を実行しました。問題は、パッケージをビルドしようとすると、次のエラーが発生することです。

[ERR]           com.sencha.exceptions.BasicException: The following error occurred while executing this line:
C:\wamp\www\testbuilder\build.xml:9: Execute failed: java.io.IOException: Cannot run program "ant": CreateProcess error=2, The system cannot find the file specified

しかし、ant がインストールされているantので、コンソールに入力すると、次のメッセージが表示されます。

build file :build.xml does not exist 
build failed 

この問題を解決するのを手伝ってください。

皆さん、ありがとうございました

4

1 に答える 1

1

antWindows のコマンド ラインに入力するとどうなりますか? 私には、ANT のパスが Windows 環境の PATH に設定されていないように思えます。

次のガイド、特に下部のセクション 3B を確認してください: http://docs.phonegap.com/en/2.4.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android

見積もり: Finally, you may need to include %ANT_HOME%\bin to your PATH as well. To check to see if this is required, run a command prompt and type ant. If the program can not be found add %ANT_HOME%\bin to the PATH. You may need to specify the full path instead of using the %ANT_HOME% environment variable.

編集:実際に表示されるメッセージは正しいです。修正については、以下の私のコメントを参照してください。

于 2013-02-22T14:01:46.017 に答える