0 votes

I am trying to implement leaderboard in my game using https://github.com/cgisca/PGSGP module.What are the steps which I have to follow to implement leaderboard using Google Play Games Services Plugin for Godot-3.2.2? As per the instructions given in the module I added the following lines in AndroidManifest.xml file.

     android:value="@string/app_id" />

Then created Strings.xml file and added the following code inside it.

<?xml version="1.0" encoding="utf-8"?>
    <string name="app_id">745298242451</string>

I created values folder inside my project folder and placed Strings.xml inside the values folder: res->values->Strings.xml (not sure whether this step is correct)
But when I export the project I get the following error:

If instead of doing the above steps If I just add the following to my AndroidManifest.xml file:

  android:value="745298242451" />

I get the following error:

2020-12-05 10:43:56.270 3136-15861/? W/Bundle: Key com.google.android.gms.games.APP_ID expected String but value was a java.lang.Float.  The default value <null> was returned.
2020-12-05 10:43:56.270 3136-15861/? W/Bundle: Attempt to cast generated internal exception:
    java.lang.ClassCastException: java.lang.Float cannot be cast to java.lang.String
        at android.os.BaseBundle.getString(BaseBundle.java:1167)
        at cak.a(:com.google.android.play.games.services@206160040@2020.08.20616 (329532961.329532961-000400):22)
        at dne.a(:com.google.android.play.games.services@206160040@2020.08.20616 (329532961.329532961-000400):92)
        at biz.a(:com.google.android.play.games.services@206160040@2020.08.20616 (329532961.329532961-000400):0)
        at biw.run(:com.google.android.play.games.services@206160040@2020.08.20616 (329532961.329532961-000400):1)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)
2020-12-05 10:43:56.273 563-563/? I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2020-12-05 10:43:56.287 563-563/? I/chatty: uid=1000(system) /system/bin/surfaceflinger identical 2 lines
2020-12-05 10:43:56.288 563-563/? I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2020-12-05 10:43:56.291 3136-15861/? E/PlayGamesServices[GamesAuthenticator]: ****
    **** Your AndroidManifest.xml file does not contain an APP_ID meta-data tag**** or contains an incorrect one.
    **** Please verify that your manifest refers to the correct project ID. 
    **** For more information, refer to the troubleshooting guide:
    **** https://developers.google.com/games/services/android/troubleshooting#check_your_metadata_tags
in Engine by (20 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.