一、问题描述
使用proguard混淆代码,执行package打包命令,报如下错误:
[proguard] Error: You have to specify '-keep' options if you want to write out kept elements with '-printseeds'.
[proguard] Note: you're ignoring all warnings!
二、解决方法
这是因为在proguard里执行混淆时,必须指定一个-keep,如果你想混淆所有的,填一个不存在的包名即可:
<option>-keep public class com.aaaa.* {
public protected *;
}
</option>
本文介绍了使用ProGuard进行代码混淆时出现的一个常见错误:在没有指定-keep选项的情况下尝试使用-printseeds选项。文中提供了具体的解决方法,即通过添加一个-keep选项来排除特定的类或方法,以确保混淆过程正常进行。
274

被折叠的 条评论
为什么被折叠?



