【发布时间】:2017-07-16 08:45:14
【问题描述】:
我用了很长时间的 Android Studio 2.1 和 gradle 插件com.android.tools.build:gradle:2.1.2。
发布版本配置了我的自定义 proguard 文件和个人字典(包含 java 关键字作为 return double、float 等)。使用反混淆器,文件夹树得到正确混淆。
现在我正在使用带有 Gradle 插件 2.3.3 的 Android Studio 2.3,具有相同的代码、相同的 proguard 文件和相同的字典,但是在去混淆之后,包、方法和类的名称保持不变,只有变量被混淆了。这里不同的输出为 PNG 图像:
问题出在哪里?
【问题讨论】:
-
显示文件proguard
-
-printconfiguration -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -verbose -dontoptimize -dontpreverify -adaptresourcefilenames .xsd,.wsdl,.xml,.properties,.gif,.jpg,.png -flattenpackagehierarchy -obfuscationdictionary proguard_dictionary.txt -packageobfuscationdictionary proguard_dictionary.txt -classobfuscationdictionary proguard_dictionary.txt -dontwarn android.support. -dontwarn com.facebook.* * -dontwarn com.squareup.** -dontwarn org.junit.** -dontwarn android.test.** -dontwarn com.github.siyamed.**
标签: android android-studio gradle proguard obfuscation