CardView shadow not appearing in Lollipop after obfuscate with proguard

ε祈祈猫儿з 提交于 2019-11-29 14:24:31

After some diving in the library packages, I wrote a rule that protected everything at android.support.** and now I'm finally protecting just android.support.v7.widget.RoundRectDrawable.

So if you are having troubles with this, just add the next rule at your proguard config:

-keep class android.support.v7.widget.RoundRectDrawable { *; }

FYI, there are some good online collections of the Proguard rules required for each library, e.g. https://github.com/krschultz/android-proguard-snippets/

It looks like your Proguard rule has already been absorbed into that project, and it links back to this Stackoverflow question. :-)
https://github.com/krschultz/android-proguard-snippets/blob/master/libraries/proguard-support-v7-cardview.pro

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!