My game crashes as soon as I try to authenticate the user. I have warnings about com.android.support:support-annotations and com.android.support:support-v4 but in other issues it seems to say this doesn't matter. I have no idea why it crashes or how to check. What could it be?
I had your problem and found this thread, @tolgau got a solution. I did it and worked for me.
https://github.com/playgameservices/play-games-plugin-for-unity/issues/1604
Hope it helps you.
maybe you could use Catlog of Android Studio to get more information what happend inside your app
I love you @Fragh and @tolgau. It works. I've been absolutely confused for days but it works now.
If anyone who see this has this error with Unity you can get needed 10.0.1 aar files from the shared drive folder linked below. You will also see a .unitypackage in there. you just need to delete 10.2.0 play services aar files from Assets/Plugins/Android and then import the package with the 10.0.1 aar files into Unity.
I hope this helps someone save the hours upon hours of trying to find a solution I spent.
Thank goodness @tolgau gave us a solution.
https://drive.google.com/folderview?id=0B-w9u2zDKrHGUmtjMmk2VDhhSjA
.
thanks Fragh tolgau's solution work for me
Thank you so much everyone!!! it works. I've confused 48 hours because this..
1 MORE THANK YOU!!!! ^_^/ ^_^/ ^_^/ ^_^/
Thank you so much, worked for me
Hello i followed the above steps and now i dont have the app crashing...Although when i try to sign in and the google play console pop up shows while it loads it suddendly closes...Anyone knows the issue?
@kostasandre 1.did you attach your android setup
@malisasmaz Can u explain please 1), 3)?
the other two yes
@kostasandre 1. In Google Play Developer Console-Game Services-Your app- Testing add your phone's playstore account to tester mail
Hello!
Thanks to mcneproj, but I still can not sign in.
Now app does not crash, but just can't login...
What could it be?
@malisasmaz Thanks for you reply.Yes i have rechecked everything,as i said before the app was playing well but when i updated the SDKs it stopped...i followed the solution #1604 and the app was opening again but when the google games pop-up shows, it suddenly closes...i have also reset google play games and google services on my phone in case that was the problem...
@powerdrive i have the same problem did you solve it?
@kostasandre no
@kostasandre What version of the unity are you using?
I followed the steps from @tolgau, now, my problem is that i can't select the google accounts to sign in! Anyone know the solution?
@powerdrive @kostasandre The same problem, I tried with Unity 5.5.2f1 and Unity 5.0.0f4 but there is not functionality difference. When I authenticated, the google games pop-up suddenly closes, just can't login
I solved this with #1608 and #1604. This worked for me when i changed my OAuth 2.0 SHA1 to keystore SHA1. In other words, my problem was that my OAuth 2.0 had different SHA-1 in my api console. Tell me if you solved it like this! :)
@germafica Thanks for yor reply can u explain please the steps? So i take my SHA1 key from the console as explained on post #1608 then how did you do it?where you make the change from OAuth 2.0 to keystore SHA1(sorry for the noob question i have recently tried on unity).Also because i didnt know what to do, i have deleted my first keystore and the app from the developer console and tried to do it from the beggining but i had the same issues.
@kostasandre we don't need to remove anything from anything (except with @tolgau steps #1604).
Make sure this steps:
Note: Let me know if there is something that you don't understand.
@germafica , I solved this! Thank you very much! I adore you!
@germafica Thanks man..!!! you re the best...finally it worked..!! thanks for the detailes response, much appreciated.
For those who did the above steps and have issues finding the SHA1 via command window go to this path C:Program Files (x86)Javajre1.8.0_121bin and then run command.exe and type:
keytool -list -v -keystore yourprojectpathmykey.keystore
In addition because i had made a new one i had to rebuilt the project.Unity ->Player Setting-> Publishing settings
I confirm that app doesn't crash when I use google play service 11.0.4 and plugin 0.9.39a. I noticed that in newest version 0.9.50 Android Resolver imported 11.0.6 aar files which i couldn't find in gms folder.
After install 0.9.39a go setup project and build app.
APP CRASH 2019 FIXED​
After trying everything turns out its the plugin compatibility problem here is the perfect fix for it.
https://youtu.be/L-N7Tsw6Jf4
Most helpful comment
I had your problem and found this thread, @tolgau got a solution. I did it and worked for me.
https://github.com/playgameservices/play-games-plugin-for-unity/issues/1604
Hope it helps you.