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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With