playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.46k stars 965 forks source link

I can't sign in google play when user click button #2971

Closed Qusdrok closed 3 years ago

Qusdrok commented 3 years ago

i created a button in my game, if user click to it then it will sign in google, but while I test I have encountered this error on monitor tools of unity my error got: java.lang.ClassNotFoundException: Didn't find class "com/google/android/gms/games/Games"

I fixed it in a few ways on google but it still can't be fixed, why? i change minify release and debug from none -> proguard, enable "proguard file" this is all lines in my file proguard -keep class com.google.android.gms.games.leaderboard. { *; } -keep class com.google.android.gms.games.snapshot.* { ; } -keep class com.google.android.gms.games.achievement. { *; } -keep class com.google.android.gms.games.event. { *; } -keep class com.google.android.gms.games.stats.* { ; } -keep class com.google.android.gms.games.video. { ; } -keep class com.google.android.gms.games. { ; } -keep class com.google.android.gms.common.api.ResultCallback { ; } -keep class com.google.android.gms.signin. { *; } -keep class com.google.android.gms.dynamic.* { ; } -keep class com.google.android.gms.dynamite. { *; } -keep class com.google.android.gms.tasks. { *; } -keep class com.google.android.gms.security.* { ; } -keep class com.google.android.gms.base. { *; } -keep class com.google.android.gms.actions. { *; } -keep class com.google.games.bridge.* { ; } -keep class com.google.android.gms.common.ConnectionResult { ; } -keep class com.google.android.gms.common.GooglePlayServicesUtil { ; } -keep class com.google.android.gms.common.api. { ; } -keep class com.google.android.gms.common.data.DataBufferUtils { ; } -keep class com.google.android.gms.games.quest.* { ; } -keep class com.google.android.gms.nearby.* { ; }

I am using:

PLEASE HELP ME :( I REALLY NEED HELP, THANK YOU FOR READING, HAVE A NICE DAY

rizqirizqi commented 3 years ago

I got that error yesterday after upgrading Unity to 2019.4.15f1. Several hours of trying different configurations but still stuck with that error. Then, when I check git status, I found out that Unity deleted some files in /Assets/Plugins/Android/*. Just recover the deleted files and it runs fine.

Qusdrok commented 3 years ago

oh thank you so much bro

Vào CN, 22 thg 11, 2020 vào lúc 13:45 Mgs. M. Rizqi Fadhlurrahman < notifications@github.com> đã viết:

I got that error yesterday after upgrading Unity to 2019.4.15f1. Several hours of trying different configurations but still stuck with that error. Then, when I check git status, I found out that Unity deleted some files in /Assets/Plugins/Android/*. Just recover the deleted files and it runs fine.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/playgameservices/play-games-plugin-for-unity/issues/2971#issuecomment-731706771, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKFQASNIJD2QVNQRQJ4RCATSRCXPZANCNFSM4TWHRUUA .