gpt4 book ai didi

class - ProGuard - 意外包含类

转载 作者:行者123 更新时间:2023-12-04 04:27:02 25 4
gpt4 key购买 nike

当我试图在 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

我会很感激你的帮助。

最佳答案

带有选项 -injars-libraryjars ,您应该指定类的正确基目录(或 jar),就像类路径一样。在这种情况下:classes ,不是 classes\Files\DataLoader.class .

请参阅 ProGuard 手册 > 故障排除 > Warning: class file ... unexpectedly contains class ...

关于class - ProGuard - 意外包含类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23974367/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com