问题描述
我正在尝试将 yguard 混淆任务从 ANT 转换为遵循 yguard example 的 Gradle。
因为我有很多罐子要从混淆中排除,我的想法是让 Gradle 为我列出它们。像这样:
configurations {
external
}
...
dependencies {
external group: 'any_group1',name: 'any_name1',version: 'any_version1'
external group: 'any_group2',name: 'any_name2',version: 'any_version2'
implementation configurations.external.dependencies
}
...
ant.yguard {
...
externalclasses {
pathelement(location: configurations.external.asPath)
}
...
}
运行混淆任务时出现这样的错误
任务 ':obfuscate' 执行失败。 yguard 无法解析类 (java.lang.classNotFoundException: ...)。 可能缺少外部依赖。
ClassNotFoundException 与外部配置中 jar 内的类相关。
知道出了什么问题吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)