Java ProGuard不工作了

Java ProGuard不工作了,java,android,proguard,Java,Android,Proguard,我正在用最新的SDK开发一个Android应用程序。我正在为Api 4(android 1.6)开发应用程序 我的项目有一个proguard project.txt文件(这是Android SDK最新版本的proguard配置文件),project.properties文件在proguard行中没有注释,因此proguard被激活(proguard.config=${SDK.dir}/tools/proguard/proguard Android.txt:proguard project.txt

我正在用最新的SDK开发一个Android应用程序。我正在为Api 4(android 1.6)开发应用程序

我的项目有一个proguard project.txt文件(这是Android SDK最新版本的proguard配置文件),project.properties文件在proguard行中没有注释,因此proguard被激活
(proguard.config=${SDK.dir}/tools/proguard/proguard Android.txt:proguard project.txt)

问题是,我用proguard编译了apk文件,似乎proguard在该文件中什么也没做,我反编译了apk,并显示了与不使用proguard时相同的代码。我的proguard project.txt也是空的。它只包含注释

这是我自动生成的proguard project.txt文件的内容:

    # To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
#   public *;
#}
我必须在这个文件中添加哪些行来模糊、优化和减小apk文件的大小?(至少可以混淆代码…)


谢谢

当您使用
ant release
或在Eclipse中导出apk来创建发布版本时,Android SDK仅应用ProGuard。

那么配置文件中没有配置也没关系吗?