Google Play Services with Proguard in Android Studio

坚强是说给别人听的谎言 提交于 2019-12-04 05:32:32

For the "Picasso" library, you just have to add this to your ProGuard configuration:

-dontwarn com.squareup.okhttp.**

This is because "Picasso" has an optional library that is called "OkHttp". This is not included, but not needed, either.

For the Google Play Services, there seems to be some inconsistency with the library. You should update your library files and clean the project.

I ended up putting in the following lines, so that Proguard stopped warning me. The build still runs as expected.

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