java - 为什么Proguard混淆后找不到这个资源?

标签 java obfuscation

在 Proguard 混淆无法从 jar 中找到资源后, 我收到以下错误

Caused by: java.lang.NoClassDefFoundError: Could not initialize class mypackege.MyClass

最佳答案

可以在 Link 上找到

<adaptresourcefilenames filter = "file_filter" />
Rename the specified resource files, based on the obfuscated names of the corresponding class files.

<adaptresourcefilecontents filter = "file_filter" />
Update the contents of the specified resource files, based on the obfuscated names of the processed classes.

关于java - 为什么Proguard混淆后找不到这个资源?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12284860/

相关文章:

java - 强制使用多个相同类型的参数参数的静态方法

java - 在目录列表数组中查找字符串

javascript - 免费的 JavaScript 混淆器?

matlab - 如何编写 protected MATLAB 脚本/程序?

java - jms onMessage() 暂停操作,直到收到消费信号

Java 和 SSH : maintaining a connection

java - 如何将策略文件添加到嵌入 html 文件的 jar 小程序中

c# - 替换多个字符串的更好方法 - C# 中的混淆

cordova - 有没有办法混淆整个 Cordova/Phonegap 项目?

IBM MobileFirst 6.3 中的混淆