ProGuard - 意外包含类 [英] ProGuard - unexpectedly contains class
本文介绍了ProGuard - 意外包含类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我试图在ProGuard中混淆简单的DataLoader.class文件时,我得到这个错误:
While I'm trying to obfuscate simple DataLoader.class file in ProGuard I get this error:
Reading program directory [C:\Users\uzytkownik\Documents\NetBeansProjects\ProTest\build\classes\Files\DataLoader.class]
Warning: class [DataLoader.class] unexpectedly contains class [Files.DataLoader]
Warning: there were 1 classes in incorrectly named files.
You should make sure all file names correspond to their class names.
The directory hierarchies must correspond to the package hierarchies.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unexpectedclass)
If you don't mind the mentioned classes not being written out,
you could try your luck using the '-ignorewarnings' option.
Please correct the above warnings first.
这里是项目:
http://www49.zippyshare.com/v/14668241/file.html
我将非常感谢您的帮助。
I will be grateful for your help.
推荐答案
使用选项 -injars
和 -libraryjars
,你应该指定你的类的正确的基本目录(或jar),就像一个类路径。在这种情况下: classes
,而不是 classes\Files\DataLoader.class
。
With the options -injars
and -libraryjars
, you should specify the proper base directory (or jar) of your classes, just like a classpath. In this case: classes
, not classes\Files\DataLoader.class
.
请参阅ProGuard手册>疑难解答> 警告:类文件.. 。出乎意料地包含类...
See the ProGuard manual > Troubleshooting > Warning: class file ... unexpectedly contains class ...
这篇关于ProGuard - 意外包含类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文