Google sign in - how to add Games.SCOPE_GAMES_LITE?

前端 未结 1 2182
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-20 18:15

I\'m trying to set up Google Sign In for an Android game. The sign in works fine and I can select a Google account and sign in. But when calling the Leaderboard, it shows me

相关标签:
1条回答
  • 2021-01-20 18:55

    I found the problem... My gradle file was fine, but from my manifest file was missing this:

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

    You can find your App ID when logging into Google Play Console --> Game Services --> "Your game" --> "Game Details", directly under the header (which is the name of your app)

    0 讨论(0)
提交回复
热议问题