2012-04-02 1 views
3

私はずっとAdroidアプリケーションを構築してきましたが、ANTコマンドラインモデルを使ってリリースバージョンを構築してきました。Android Build/ProgardのログをEclipseで入手

私はアンドロイドのリリースAPKの構築を開始するeclispeのEXPORTモデルを使用することを決定した、それが働いているように見えます。

しかし、これは限り素敵な、私はどこでもビルドからのログが表示されていないので、私は、ビルドのProGuardの部分は、実際に働いていることを確認していません。 APKが作成され、署名されているように見えますが、実際にビルド出力、特にANTを使用してビルドするときに通常コンソール出力の一部となるプロガードの手順を実際に見ることができるようになりました。

私は、エクスポートを選択して、何も見えていないとき、私は、Eclipseのコンソールウィンドウを開き、私は、AndroidとEclipse用のビルドログの情報を検索しようとすると私は同じように何を見つけていません。

書き出しコマンドのsysout/buildログはどこにありますか?通常のAntの設定ダイアログを使用して、その後(クリーン、デバッグ)の通常のターゲットを実行することにより

+0

私はPROGUARDが正常に動作しているとは思わない、私は意図的にproguard.cfgを台無しにして、コンソールに出力を見る。しかし、エラーがないことを確認したら、ビルドは行われますが、-printmappingによって割り当てられたファイルはどこにも生成されません。 – user282172

答えて

1

、私は右の日食のコンソールタブにDXの出力を参照してください...あなたは、ターゲットと同じ一般的な経験を持っているでしょう=リリースとそのプロセスの中ProGuardのステップ..

  1. エクリプス/外部ツールの設定
  2. タブ=ターゲット - あなたは含めるターゲットを選択(クリーン、デバッグ)
  3. は、ターゲットの実行順序を確認
  4. Antを実行し、コンソールを見て....

あなたはuがリリースターゲットを実行する場合、DXを以下に示しProGuardのが表示されます。

日食コンソール:あなたはProGuardのというディレクトリがありますプロジェクト情報を保持しているワークスペース内

 [dx] associated EnclosingMethod attribute. This class was probably produced by a 
     [dx] compiler that did not target the modern .class file format. The recommended 
     [dx] solution is to recompile the class from source, using an up-to-date compiler 
     [dx] and without specifying any "-target" type options. The consequence of ignoring 
     [dx] this warning is that reflective operations on this class will incorrectly 
     [dx] indicate that it is *not* an inner class. 
     [dx] warning: Ignoring InnerClasses attribute for an anonymous inner class 
     [dx] (org.apache.commons.logging.LogFactory$6) that doesn't come with an 
     [dx] associated EnclosingMethod attribute. This class was probably produced by a 
     [dx] compiler that did not target the modern .class file format. The recommended 
     [dx] solution is to recompile the class from source, using an up-to-date compiler 
     [dx] and without specifying any "-target" type options. The consequence of ignoring 
     [dx] this warning is that reflective operations on this class will incorrectly 
     [dx] indicate that it is *not* an inner class. 
     [dx] 2 warnings 
-crunch: 
    [crunch] Crunching PNG Files in source dir: C:\cygwin\home\rob\src\gpsclipper\res 
    [crunch] To destination dir: C:\cygwin\home\rob\src\gpsclipper\bin\res 
    [crunch] Crunched 0 PNG files to update cache 
-package-resources: 
    [aapt] Current build type is different than previous build: forced aapt run. 
    [aapt] Creating full resource package... 
-package: 
    [echo] --apk outfldr:C:\cygwin\home\rob\src\gpsclipper\bin resourcefile: gpsclipper.ap_ 
    [echo]    apkfilepath: C:\cygwin\home\rob\src\gpsclipper\bin\gpsclipper-debug-unaligned.apk verbose: false 
    [echo]    Dxpath: C:\cygwin\home\rob\src\gpsclipper\bin\classes.dex 
    [echo]    srcFldrPth: C:\cygwin\home\rob\src\gpsclipper\src jarRFID: ${project.libraries.jars} 
    [echo]    nativeFldr: ${project.libraries.libs} 
[apkbuilder] Current build type is different than previous build: forced apkbuilder run. 
[apkbuilder] Creating gpsclipper-debug-unaligned.apk and signing it with a debug key... 
-post-package: 
-do-debug: 
[zipalign] Running zip align on final apk... 
    [echo] Debug Package: C:\cygwin\home\rob\src\gpsclipper\bin\gpsclipper-debug.apk 
[propertyfile] Updating property file: C:\cygwin\home\rob\src\gpsclipper\bin\build.prop 
[propertyfile] Updating property file: C:\cygwin\home\rob\src\gpsclipper\bin\build.prop 
[propertyfile] Updating property file: C:\cygwin\home\rob\src\gpsclipper\bin\build.prop 
[propertyfile] Updating property file: C:\cygwin\home\rob\src\gpsclipper\bin\build.prop 
-post-build: 
debug: 
-pre-clean: 
clean: 
    [delete] Deleting directory C:\cygwin\home\rob\src\gpsclipper\bin 
    [delete] Deleting directory C:\cygwin\home\rob\src\gpsclipper\gen 
BUILD SUCCESSFUL 
Total time: 54 seconds 
+0

Robert、答えてくれてありがとう、私は自分のexplicite ANT呼び出しを定義しないようにしようとしています。ビルドされたエクスポートの実行によって生成されている出力を見てください。 run-> external_tools-> external tools configに移動すると、ANTに表示される設定はありません。明示的にantコマンドを定義する必要はありません。アンドロイドを実行しているものの出力を参照してください。 – user282172

+0

さて、私はまだExpliciteのログを見つけていませんが、MAPPINGSファイルが生成されているのを見て、プロガードが正しく実行されたという証拠として信頼すると思います。 – user282172

+0

@ user282172私はプロジェクトをantを使ってビルドするまでProguardのログを見ることができませんでした。それはコンソールにプロゴードログを表示する唯一の方法です。 –

0

、このディレクトリは行われていたものにとあなたの情報を与えるすべてのビルドのログとのマッピングを保持しています結果は何ですか?

関連する問題