Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Qusdrok opened this issue Nov 15, 2020 · 2 comments
Closed

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

Qusdrok opened this issue Nov 15, 2020 · 2 comments

Comments

@Qusdrok
Copy link

Qusdrok commented Nov 15, 2020

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:

  • Unity 2019.4.2f1
  • Google play services 0.10.11

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

@rizqirizqi
Copy link

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
Copy link
Author

Qusdrok commented Nov 23, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants