Sign up ×
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute:

I'm facing a problems again with Unity2D. I've imported latest a Google Social package into Unity. There's some kind of problem when I'm authenticating a user.

using GooglePlayGames;
using UnityEngine.SocialPlatforms;
void Authentication()
{
    PlayGamesPlatform.Activate();
    Social.localUser.Authenticate((bool success) =>
    {
        if (success)
        {
            Debug.Log("You've successfully logged in.");
        }
        else
        {
            Debug.Log("Login failed for some reason.");
        }
    });
}

Using this function onStart() of the Unity's C# script. Application crashes on my mobile phone. Debug reports are following:

enter image description here

share|improve this question
    
Can you try this on the phone, where it crashes, and post the logcat dump here? It's hard to guess the issue, when you show us the log of the editor, where the error is not happening. – Gaston Claret Apr 14 at 20:29
    
How do I open logcat instead of normal debug menu? I'm outside right now. I'll check it out when I'm at home. – Epz Apr 14 at 20:30
    
You need to follow these steps: 1. Open up a terminal / command windows 2. Navigate to your AndroidSDK/platform-tools 3. In the terminal, write "/adb logcat -s Unity" or if on MAC "./adb logcat -s Unity" 4. you should see the same things you do Debug.Log(""), but from the phone Now do a printscreen and post it here. If you have any doubts, check here on how to access the logcat: answers.unity3d.com/questions/492681/how-to-use-adb-logcat.html – Gaston Claret Apr 14 at 20:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.