我正在使用 Proguard 并在我的应用程序中使用此代码
System.out.println("ACTIVITY NAME IS " + activity.getLocalClassName());
它打印出 Activity 名称,Iin 处于 Release模式。我认为它应该混淆所有类名?
这种行为正常吗?
最佳答案
是的,这是正常行为。 Activity 名称永远不会被混淆,因为它们在 manifest.xml 中被引用。 android 通过反射访问这些 Activity ,因此它们的名称不能更改。检查此链接 https://stackoverflow.com/a/20620108/1320616
关于android - ProGuard 仍然显示完整的 Activity 名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36562915/