Several new Proguard issues Google Play services v10.2.6 to v11.0.0 in a Multidex project

本秂侑毒 提交于 2019-12-05 02:57:26

You may want to check this Proguard Troubleshooting manual wherein it was noted that for the encountered warnings, the configuration keeps the entry point...but not the descriptor class:

Your configuration contains a -keep option to preserve the given method (or field), but no -keep option for the given class that is an argument type or return type in the method's descriptor. You may then want to keep the class too. Otherwise, ProGuard will obfuscate its name, thus changing the method's signature. The method might then become unfindable as an entry point. You can automatically keep such descriptor classes with the -keep option modifier includedescriptorclasses (-keep,includedescriptorclasses ...). You can switch off these notes by specifying the -dontnote option.

For additional insights, these SO posts might also help:

Summing it all, you may want to try adding these two lines to your Proguard configuration file:

-keep class com.google.android.gms.**
-dontwarn com.google.android.gms.**

It seems that the Android Firebase SDK v11.0.0 is doomed, the Android Firebase SDK v11.0.1 fixed it without any extra change.

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