Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java - Google Play Game Services

Google Play Game Services is testing:

public class MainActivity extends BaseGameActivity {
    public void onCreate( Bundle savedInstanceState )
    {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          beginUserInitiatedSignIn();
    } 
}

When onSignInFailed() is called, the following pop-up message appears:

the application is incorrectly configured. Check that the package name and signing certificate match the client ID created in Developer Console. Also, if the application is not yet published, check that the account you are trying to sign in with is listed as a tester account. See logs for more information

like image 449
user2636828 Avatar asked Jul 31 '13 06:07

user2636828


People also ask

Can Java be used for Android game development?

Android uses one of the most popular programming languages, Java, as the primary language for building apps of all types. So, you should first obtain a solid grasp of the Java language and its foundation APIs to improve the chances of succeeding as an Android app developer.

Is Google Play Services and Google Play Games same?

Google Play Services connects apps to other Google services, like Google Sign In and Google Maps. Google Play Services isn't the same as the Google Play Store app, and is included with Android. Google Play Services doesn't make your battery drain faster or use too much of your mobile data plan.

Is Google Play game services free?

Only 3% of developers on Google Play are subject to a service fee; the other 97% of developers can distribute their apps and take advantage of all Google Play has to offer at no charge.

How do you fix Google Play Games is having trouble with Google Play services?

Clear the Google Play Store data If cleaning the cache of the Google Play Store and Google Play Services doesn't resolve the issue, try clearing the Google Play Store data: Open the Settings menu on your device. Go to Apps or Application Manager. (This option might differ depending on your device.)


1 Answers

I have sovled the problem like this :)

  1. Go to Google Developper Console https://cloud.google.com/console
  2. Select Your game project, go to "APIs & Auth" > "Creditentials"
  3. Delete all the "Client ID for Android application" you have

At this point, we don't have anything more to do in the Google Developper Console.

  1. Go to Android Developper Console https://play.google.com/apps/publish
  2. Select your game in Play service
  3. Go to "linked applications"
  4. Create a NEW linked application android and put it your production certificate SHA1
  5. Create a NEW linked application android and put it your debug certificate SHA1
  6. Wait a few to changes be deployed

Now, we need to clear the Android Application cache before trying to connect

  1. Clear cache of your application
  2. Launch your app

And... It's works !! (For me at least...) My problem was that I've created the linked apps from the Google Developer Console instead of the Android Developper Console...

like image 83
alphayax Avatar answered Nov 15 '22 22:11

alphayax