12501 Google登录错误

问题描述 投票:0回答:2

标题说明了一切。我有一个Android项目设置与谷歌Play游戏登录客户端,我复制了谷歌教程中使用的确切代码看到here。我没有实现任何.json文件,以前的线程的任何答案都不起作用。有人说要使用Web ID进行身份验证,但样本不会这样做。这是我的.java文件:https://pastebin.com/Lp1mxV0c

java android google-play-services google-play-games
2个回答
0
投票

我按照Google Play Games Setup进行了工作,详细介绍了您需要执行的逐步说明。这很简单。

您需要在Google Play商店中使用一个帐户(支付25美元)才能尝试使用该GPGS Android示例,因为它涉及成就,排行榜,活动。您还需要PlayStore游戏的AppID连接到您的演示:

< string name="app_id">APP_ID FROM PLAYSTORE</string> //from strings.xml

在真实设备上测试,我得到它的工作:

enter image description here


0
投票

我通过将应用程序ID添加到AndroidManifest.xml解决了同样的问题

(...)
    <application
    (...)/>
           <meta-data
                android:name="com.google.android.gms.games.APP_ID"
                android:value="@string/app_id"/>
(...)
© www.soinside.com 2019 - 2024. All rights reserved.