gpt4 book ai didi

android - java - Google Play 游戏服务

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:57:36 25 4
gpt4 key购买 nike

Google Play 游戏服务正在测试:

public class MainActivity extends BaseGameActivity {
public void onCreate( Bundle savedInstanceState )
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
beginUserInitiatedSignIn();
}
}

当调用 onSignInFailed() 时,出现以下弹出消息:

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

最佳答案

我已经解决了这样的问题:)

  1. 转到 Google Developer Console https://cloud.google.com/console
  2. 选择您的游戏项目,转到“APIs & Auth”>“Credentials”
  3. 删除您拥有的所有“Android 应用程序的客户端 ID”

此时,我们在 Google Developper Console 中没有其他事情要做。

  1. 转到Android 开发者控制台 https://play.google.com/apps/publish
  2. 在 Play 服务中选择您的游戏
  3. 转到“链接的应用程序”
  4. 创建一个新的链接应用程序 android 并将其放入您的生产证书 SHA1
  5. 创建一个新的链接应用程序 android 并将其放入您的调试证书 SHA1
  6. 稍等片刻以部署更改

现在,我们需要在尝试连接之前清除 Android 应用程序缓存

  1. 清除应用程序的缓存
  2. 启动您的应用

而且......它的作品! (至少对我来说......)我的问题是我已经从 Google Developer Console 而不是 Android Developper Console 创建了链接的应用......

关于android - java - Google Play 游戏服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17963473/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com