Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fail to login Google Play Game Services

I set up my game on Developer Console with package name and right signing certificate and created a leaderboard for it (but no achievements was created).

Then, I downloaded the sample "Type A Number Challenge" and "BaseGameUtils" from https://developers.google.com/games/services/downloads/

After that, I modified the package name, leaderboard ID, application ID in "Type A Number Challendge", removed the code regarding achievement, generate the apk file with the right signing certificate and test it.

However, the following dialog was prompted when I try to login Google+ on my phone:

"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 login with is listed as a tester account. See logs for more information."

Refer to the logs on Eclipse, the package name, application ID and signing certificate match my setting on Google Console and the account I tried to login was listed on tester list.

I also published the application, however, the same dialog still prompted.

May I know if I missed something?

Thank you.

like image 894
Ponyta Ho Avatar asked Dec 04 '13 07:12

Ponyta Ho


1 Answers

Here are a few things to try:

Double-check that the APK is getting signed with the right certificate. Even if you're sure that it is :-) Here's an example command line:

unzip YourGame.apk
keytool -printcert -file META-INF/CERT.RSA

See if the fingerprint printed in the SHA1 line matches what you entered in Developer Console.

Next, double-check your metadata tags on your AndroidManifest.xml file. You should have:

<meta-data android:name="com.google.android.gms.games.APP_ID"
    android:value="@string/app_id" />

And, of course, you should have a corresponding string in res/values/strings.xml with your app ID:

<string name="app_id">123456789012</string>

Make sure this app ID contains only digits. It is an error to include ".apps.googleusercontent.com" here!)

Also, make sure the account on your test phone is listed in the Testers section of the developer console (but you said you published your app, so this shouldn't matter... but check it anyway).

For other troubleshooting tips, check out our troubleshooting guide.

like image 168
Bruno Oliveira Avatar answered Nov 16 '22 01:11

Bruno Oliveira