当我试图在ProGuard中对简单的DataLoader.class文件进行模糊处理时,我得到了这个错误:
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
我将非常感谢你的帮助。
发布于 2014-06-04 08:32:22
使用选项-injars和-libraryjars,您应该指定类的正确基目录(或jar),就像类路径一样。在本例中:classes,而不是classes\Files\DataLoader.class。
请参阅ProGuard手册>故障排除> Warning: class file ... unexpectedly contains class ...
发布于 2020-01-27 18:03:22
Warning: class [META-INF/versions/9/module-info.class] unexpectedly contains class [module-info] 这就是我遇到的问题,我尝试了下面提到的几个选项:
对我有效的选项是3。
不知道为什么,但它解决了我的问题,我能够使罐子。
当你升级了一些东西,比如我升级了spring-boot版本,而项目开始失败时,就会出现这个问题。
请同时检查maven依赖项。
发布于 2021-05-04 19:20:37
如果你在android上工作,添加这个build.gradle
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}https://stackoverflow.com/questions/23974367
复制相似问题