Proguard unresolved references to classes

谁说胖子不能爱 提交于 2019-12-06 04:07:35
abielita

Based from this thread, if you use ProGuard, you need to keep some GMS (Google Play Services) classes and they are annotated with @com.google.android.gms.common.annotation.KeepName.

You need to ignore like you are compiling but you also need to keep the class so it can find it during runtime.

Add these two lines to your proguard configuration file:

-keep class com.google.android.gms.** { *; }
-dontwarn com.google.android.gms.**

You may also check these related SO posts:

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