2011-12-28 3 views
0
Buildfile: C:\Users\**\workspace\Obfuscation\build.xml 

-set-mode-check: 

-set-release-mode: 

-release-obfuscation-check: 

-setup: 
    [echo] Gathering info for Obfuscation... 
    [setup] Android SDK Tools Revision 15 
    [setup] Project Target: Android 2.2 
    [setup] API level: 8 
    [setup] 
    [setup] ------------------ 
    [setup] Resolving library dependencies: 
    [setup] No library dependencies. 
    [setup] 
    [setup] ------------------ 
    [setup] 

-build-setup: 
    [echo] Creating output directories if needed... 
    [mkdir] Created dir: C:\**\**\workspace\Obfuscation\libs 

-pre-build: 

-code-gen: 
    [echo] ---------- 
    [echo] Handling aidl files... 
    [aidl] No aidl files to compile. 
    [echo] ---------- 
    [echo] Handling RenderScript files... 
[renderscript] No renderscript files to compile. 
    [echo] ---------- 
    [echo] Handling Resources... 
    [aapt] Generating resource IDs... 

-pre-compile: 

-compile: 
    [javac] C:\Program Files\Eclipse-sdk\android-sdk\tools\ant\build.xml:600: wa 
rning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; s 
et to false for repeatable builds 
    [javac] Compiling 1 source file to C:\Users\**\workspace\Obfuscation 
\bin\classes 

-post-compile: 

-obfuscate: 

-dex: 
     [dex] Converting compiled files and external libraries into C:\Users\** 
ndhar\workspace\Obfuscation\bin\classes.dex... 
     [dx] unknown option: --output 
     [dx] usage: 
     [dx] dx --dex [--debug] [--verbose] [--positions=<style>] [--no-locals] 

     [dx] [--no-optimize] [--statistics] [--[no-]optimize-list=<file>] [--no 
-strict] 
     [dx] [--keep-classes] [--output=<file>] [--dump-to=<file>] [--dump-widt 
h=<n>] 
     [dx] [--dump-method=<name>[*]] [--verbose-dump] [--no-files] [--core-li 
brary] 
     [dx] [--num-threads=<n>] [<file>.class | <file>.{zip,jar,apk} | <direct 
ory>] ... 
     [dx]  Convert a set of classfiles into a dex file, optionally embedded 
in a 
     [dx]  jar/zip. Output name must end with one of: .dex .jar .zip .apk. 
Positions 
     [dx]  options: none, important, lines. 
     [dx] dx --annotool --annotation=<class> [--element=<element types>] 
     [dx] [--print=<print types>] 
     [dx] dx --dump [--debug] [--strict] [--bytes] [--optimize] 
     [dx] [--basic-blocks | --rop-blocks | --ssa-blocks | --dot] [--ssa-step 
=<step>] 
     [dx] [--width=<n>] [<file>.class | <file>.txt] ... 
     [dx]  Dump classfiles, or tran 
     [dx] sformations thereof, in a human-oriented format. 
     [dx] dx --junit [-wait] <TestClass> 
     [dx]  Run the indicated unit test. 
     [dx] dx -J<option> ... <arguments, in one of the above forms> 
     [dx]  Pass VM-specific options to the virtual machine that runs dx. 
     [dx] dx --version 
     [dx]  Print the version of this tool (1.6). 
     [dx] dx --help 
     [dx]  Print this message. 

BUILD FAILED 
C:\Program Files\Eclipse-sdk\android-sdk\tools\ant\build.xml:729: The following 
error occurred while executing this line: 
C:\Program Files\Eclipse-sdk\android-sdk\tools\ant\build.xml:731: The following 
error occurred while executing this line: 
C:\Program Files\Eclipse-sdk\android-sdk\tools\ant\build.xml:743: The following 
error occurred while executing this line: 
C:\Program Files\Eclipse-sdk\android-sdk\tools\ant\build.xml:249: null returned: 
1 

Total time: 3 seconds 

私はアンドロイドアップデートプロジェクトを使用してプロジェクトを更新しました。そして、私が "ant clean"コマンドを実行するとビルドは成功しましたが、 "ant release"現れます。アンドロイドのコードの難読化のために、私はコマンド「ant release」を与えると次のエラーが出ます。私はすべてを検索したが解決策を見つけることができなかった

-dex:

[dex] Converting compiled files and external libraries into C:\Users\smanandhar\workspace\Obfuscation\bin\classes.dex... 
    [dx] unknown option: --output 

ビルドファイルのdexターゲットは無効とdxコマンドを起動し、私はこの問題は、ここにあるのapache-ANT-1.8.2

答えて

0

を使用していますパラメータ。

これは、this SO questionにあなたをリードした溶液に答えて

+0

感謝を指示を与える。!!パスに問題がありました。一度修正すると解決しました。:) –

+0

@prgt_shrestha。それが他者を助けるように正しい場合には、アップホート/回答を受け入れてください。 http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-workを参照してください。 – Raghuram