Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
5
Question by Kinkladze11 · Mar 05, 2017 at 03:31 PM · crashgoogle playauthentication

Google Play Services - Authentication crash

Hi,

So I'm trying to implement a leaderboard and have successfully (as far as I can tell) implemented the Google Play Services plugin. I've also setup my leaderboard as instructed in the Google Play developer console.

On my main menu, I've created a login button which uses the 'LogIn' function as shown here :-

 using UnityEngine;
 using System.Collections;
 using GooglePlayGames;
 using UnityEngine.SocialPlatforms;
 public class GooglePlayAuth : MonoBehaviour
 {
     #region PUBLIC_VAR
     public string leaderboard;
     #endregion
     #region DEFAULT_UNITY_CALLBACKS
     void Start()
     {
         // recommended for debugging:
         PlayGamesPlatform.DebugLogEnabled = true;
 
         // Activate the Google Play Games platform
         PlayGamesPlatform.Activate();
      
     }
     #endregion
     #region BUTTON_CALLBACKS
     /// <summary>
     /// Login In Into Your Google+ Account
     /// </summary>
     public void LogIn()
     {
         Social.localUser.Authenticate((bool success) =>
         {
             if (success)
             {
                 Debug.Log("Login Sucess");
             }
             else
             {
                 Debug.Log("Login failed");
             }
         });
     }

However, upon building,running and pressing the button on my device, the game hangs for a couple of seconds before crashing.

Any help greatly appreciated :)

Comment
Add comment · Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jvukovic · Mar 12, 2017 at 07:56 PM 0
Share

I solved it by downgrading Google Play Services version...with 10.2.0 game was crashing but works perfect with 10.1.0 :)

avatar image Pille5 jvukovic · Mar 13, 2017 at 09:58 AM 0
Share

How could you downgrade play services?

avatar image skillbow · Mar 13, 2017 at 06:34 PM 0
Share

Same issue.

I found this forum thread https://github.com/playgameservices/play-games-plugin-for-unity/issues/1604 looks like the GooglePlayGames plugin is not compatible with the most recent Google Play Services (10.2.0). Some people seem to be having success rolling back to 10.0.1

I'm just moving my game to Android from iOS so all of the Android stuff is a bit new to me, I'm a little worried about fiddling around with different versions at the moment. Let me know if you try any of the thread suggestions on this and have success.

avatar image jvukovic · Mar 13, 2017 at 06:35 PM 0
Share

In your project assets>plugins>Android folder replace all play services aar files which have 10.2.0 in their name with the 10.0.1 ones ...that is what I did and it worked !

avatar image skillbow jvukovic · Mar 13, 2017 at 06:38 PM 0
Share

Thanks. I'll back up and give this a whirl.

avatar image skillbow skillbow · Mar 13, 2017 at 08:50 PM 0
Share

Thanks jvukovic this worked for me. Do you know the difference between 10.2.0 and 10.0.1?

For anyone who want to try this the steps are here https://github.com/playgameservices/play-games-plugin-for-unity/issues/1604 look for a post by tolgau about 7 comments down

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Pille5 · Mar 12, 2017 at 07:27 PM

Hi, I have the same problem. The worst part is that I cannot get any detail of the crash. There are no debug or error log messages and don't know how to debug it. Here is my console output:

 Found dependencies:
 com.android.support:support-annotations required by (this app)
 com.google.android.gms:play-services-base required by (com.google.android.gms:play-services-games:9+, com.google.android.gms:play-services-drive:10.2.0)
 com.google.android.gms:play-services-basement required by (com.google.android.gms:play-services-games:9+, com.google.android.gms:play-services-base:10.2.0, com.google.android.gms:play-services-tasks:10.2.0)
 com.google.android.gms:play-services-drive required by (com.google.android.gms:play-services-games:9+)
 com.google.android.gms:play-services-tasks required by (com.google.android.gms:play-services-games:9+, com.google.android.gms:play-services-base:10.2.0)
 com.google.android.gms:play-services-auth-base required by (com.google.android.gms:play-services-auth:9+)
 com.android.support:support-annotations required by (com.android.support:support-v4:23.1+, com.android.support:support-v4:24.0.0)
 com.android.support:support-v4 required by (com.google.android.gms:play-services-basement:10.2.0)
 UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
 UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
 UnityEngine.Logger:Log(LogType, Object)
 UnityEngine.Debug:Log(Object)
 Google.JarResolver.PlayServicesSupport:Log(String, Boolean)
 Google.JarResolver.PlayServicesSupport:ResolveDependencies(Boolean, String)
 GooglePlayServices.ResolverVer1_1:DoResolutionNoAndroidPackageChecks(PlayServicesSupport, String, OverwriteConfirmation)
 GooglePlayServices.<DoResolution>c__AnonStorey5:<>m__8()
 GooglePlayServices.ResolverVer1_1:DoResolution(PlayServicesSupport, String, OverwriteConfirmation, Action)
 GooglePlayServices.PlayServicesResolver:Resolve(Action)
 GooglePlayServices.PlayServicesResolver:AutoResolve()
 UnityEditor.EditorApplication:Internal_CallUpdateFunctions() (at C:\buildslave\unity\build\artifacts\generated\common\editor\EditorApplicationBindings.gen.cs:197)
  
 (Filename: C:/buildslave/unity/build/artifacts/generated/common/editor/EditorApplicationBindings.gen.cs Line: 197)
 
 WARNING: No compatible versions of com.android.support:support-annotations required by (com.android.support:support-v4:23.1+, com.android.support:support-v4:24.0.0), will try using the latest version 24.0.0
 UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
 UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
 UnityEngine.Logger:Log(LogType, Object)
 UnityEngine.Debug:Log(Object)
 Google.JarResolver.PlayServicesSupport:Log(String, Boolean)
 Google.JarResolver.PlayServicesSupport:ResolveDependencies(Boolean, String)
 GooglePlayServices.ResolverVer1_1:DoResolutionNoAndroidPackageChecks(PlayServicesSupport, String, OverwriteConfirmation)
 GooglePlayServices.<DoResolution>c__AnonStorey5:<>m__8()
 GooglePlayServices.ResolverVer1_1:DoResolution(PlayServicesSupport, String, OverwriteConfirmation, Action)
 GooglePlayServices.PlayServicesResolver:Resolve(Action)
 GooglePlayServices.PlayServicesResolver:AutoResolve()
 UnityEditor.EditorApplication:Internal_CallUpdateFunctions() (at C:\buildslave\unity\build\artifacts\generated\common\editor\EditorApplicationBindings.gen.cs:197)
  
 (Filename: C:/buildslave/unity/build/artifacts/generated/common/editor/EditorApplicationBindings.gen.cs Line: 197)

The path C:/buildslave/... looks invalid. Any idea?

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jvukovic · Mar 12, 2017 at 07:55 PM 0
Share

I solved it by downgrading Google Play Services version...with 10.2.0 game was crashing but works perfect with 10.1.0 :)

avatar image
0

Answer by Fimiam · Aug 30, 2017 at 12:49 PM

I have the same problem with GooglePlayGamesPlugin-0.9.40 please help anyone! I tried overwrite files 10.0.1 version and other but it didn't help.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image YoungestSneakerHunter · Jul 14, 2020 at 07:43 AM 0
Share

I got the same issue...

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Get google token 1 Answer

Game crashes on certain Android phones 1 Answer

java.lang.IllegalStateException ' Crash report on playstore 0 Answers

GoogleSignIn unity package dependency conflict google play service 0 Answers

Google Play Games plugin for Unity Not Authenticating 9 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges