0
我之前从未使用过的ProGuard,现在强制用它由于讨厌三星错误:https://code.google.com/p/android/issues/detail?id=78377使用Proguard后,为什么会出现Theming错误?
所以,基本上,我跟所有的解释,在我gradle这个文件中添加了这个:
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
和我的文件中包含我需要要解决上述错误行:
-keep class !android.support.v7.internal.view.menu.**,** {*;}
注意:我遵循了许多proguard模板文件,并尝试了很多代码,所以不知道该怎么做。
的应用程序编译调试就好了,我的手机上,但一旦我尝试编译APK并上传,我得到这个错误:
IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
请不要点我的风格。 xml,Theme IS Appcompat,它在调试时工作正常。
非常感谢任何帮助或暗示。