如何通过Eclipse混淆带有Proguard的apk?

Jan*_*usz 9 eclipse android proguard

我添加proguard.config=proguard.cfg到我的default.properties文件中,并在我的项目根目录中有一个proguard.cfg文件.如果我现在从Eclipse中使用Export as Android Application,我会收到以下错误:

[2011-01-27 11:11:37 - Application] Warning: class [classes/com/package.Class.class] unexpectedly contains class [com/package.Class]
[2011-01-27 11:11:37 - Application] Warning: class [classes/com/package.Class2.class] unexpectedly contains class [com/package.Class2]
[2011-01-27 11:11:37 - Application] Note: there were 145 duplicate class definitions.
[2011-01-27 11:11:37 - Application] Warning: there were 146 classes in incorrectly named files.
[2011-01-27 11:11:37 - Application]          You should make sure all file names correspond to their class names.
[2011-01-27 11:11:37 - Application]          The directory hierarchies must correspond to the package hierarchies.
[2011-01-27 11:11:37 - Application]          If you don't mind the mentioned classes not being written out,
[2011-01-27 11:11:37 - Application]          you could try your luck using the '-ignorewarnings' option.
[2011-01-27 11:11:37 - Application] java.io.IOException: Please correct the above warnings first.
[2011-01-27 11:11:37 - Application]     at proguard.InputReader.execute(InputReader.java:133)
[2011-01-27 11:11:37 - Application]     at proguard.ProGuard.readInput(ProGuard.java:195)
[2011-01-27 11:11:37 - Application]     at proguard.ProGuard.execute(ProGuard.java:78)
[2011-01-27 11:11:37 - Application]     at proguard.ProGuard.main(ProGuard.java:499)
Run Code Online (Sandbox Code Playgroud)

似乎我的类被保存在类子文件夹中,但Proguard使用这个类子文件夹作为包.因此,Proguard无法理解类的定义.

这是我的SDK安装问题吗?或者我的Proguard配置中是否存在错误导致此问题?

Jan*_*usz 0

现在很方便,我刚刚更新到新的 ddms Eclipse 插件版本:Android DDMS 9.0.0.v201101191456-93220 并将我的 SDK 更新到包含 Honeycomb 的新版本,问题似乎消失了。