6

apk ファイルをビルドするために Eclipse ide を使用していました。Linuxのコマンドラインでapkファイルを作成したいと思います。しかし、ant デバッグと言うと、次のエラーが発生します。

Unable to obtain resource from anttasks.jar
  java.util.zip.ZipException : error in opening zip file

Problem : failed to create task or type checkenv 
Cause : The name is undefined 
Action : Check the spelling
Action : Check that any custom tasks/types have been declared
Action : Check that any <presetdef>/<macrodef> declarations have taken place

私は ant バージョン 1.9.2 を持っています。およびAndroidバージョン17.build.xmlファイルがあります。

編集:私は自分のantバージョンを1.8.0に変更しましたが、私が何をしても、まだタスクの作成に失敗したか、checkenvエラーを入力しています。

4

4 に答える 4

1

この次の開発者リンクを確認してください

http://developer.android.com/tools/building/building-cmdline.html

于 2013-09-17T09:29:17.953 に答える