title: Sign in problem with Play Games - Android Studio JAVA
body: <p>I did exactly same thing that in google docs for Play Games Services Sign In v2. But whenever run my project in android studio,&quot;isAuthenticated&quot; variable is always set as &quot;false&quot;. I find isAuthenticatedTask.isSuccessful() returns &quot;true&quot;. But (isAuthenticatedTask.getResult().isAuthenticated()) returns &quot;false&quot; so &quot;isAuthenticated&quot; variable is going to be set as &quot;false&quot;. That means I cannot sign in google play games. I used exact same code that provided by Google. Of course I did prerequests in the google docs. Sample code in my project:</p>
  <pre><code>@Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          // Play Games Services
          PlayGamesSdk.initialize(this);
  
          GamesSignInClient gamesSignInClient = PlayGames.getGamesSignInClient(MainActivity.this);
  
          gamesSignInClient.isAuthenticated().addOnCompleteListener(isAuthenticatedTask -&gt; {
              boolean isAuthenticated =
                      (isAuthenticatedTask.isSuccessful() &amp;&amp;
                              isAuthenticatedTask.getResult().isAuthenticated());
  
              if (isAuthenticated) {
                  // Continue with Play Games Services
                  Toast.makeText(MainActivity.this, &quot;Succesful!&quot;, Toast.LENGTH_SHORT).show();
              } else {
                  // Disable your integration with Play Games Services or show a
                  // login button to ask  players to sign-in. Clicking it should
                  // call GamesSignInClient.signIn().
  
                  Toast.makeText(MainActivity.this, &quot;Failed!&quot;, Toast.LENGTH_SHORT).show();
              }
          });
          ///
  }
  </code></pre>
  <p>It toasts (messages) &quot;Fail!&quot; always. I tried calling <code>gamesSignInClient.signIn()</code> on a button or inside &quot;else&quot;. Nothing happened. There are some kind of logs that can be related to this. These:</p>
  <pre><code>W/GooglePlayServicesUtil: Google Play services out of date for &quot;MYPROJECT&quot;.  Requires 213000000 but found 202414023
  
  W/GoogleApiManager: The service for com.google.android.gms.internal.games_v2.zzx is not available: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
  
  
  </code></pre>
  <p>Also I don't know why, Android Studio logs so many (maybe 50 times) of this in red color:</p>
  <p><code>E/eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5</code></p>
  <hr />
  <p>So, I tried almost everything. I did everything that in Google Play Console as well. Like, OAuth stuff. Publishing OAuth Consent, creating OAuth credentials and adding Project ID to games-ids.xml, even in strings.xml. Of course I created OAuth credential with my project SHA-1 signature. Why can't I sign in?</p>
  <p>After this failure, I decided to implement Play Games Services v1 (Older One). I tried like explained in <a href="https://developers.google.com/games/services/v1/android/signin" rel="nofollow noreferrer">https://developers.google.com/games/services/v1/android/signin</a> website (google docs).
  But I didn't understand some explanations on it. Is there some kind of guide that is more explanative out there? Thanks!</p>