爪哇 - 谷歌玩游戏服务 [英] java - Google Play Game Services

查看:201
本文介绍了爪哇 - 谷歌玩游戏服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谷歌玩游戏服务是测试:

 公共类MainActivity扩展BaseGameActivity {
    公共无效的onCreate(包savedInstanceState)
    {
          super.onCreate(savedInstanceState);
          的setContentView(R.layout.activity_main);
          beginUserInitiatedSignIn();
    }
}
 

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

  

应用程序配置不正确。检查包名   和签名证书匹配,开发人员创建客户端ID   安慰。此外,如果应用程序尚未公布,请检查   占你正在尝试登录同被列为一个测试帐号。   请参阅日志以获取更多信息。

解决方案

我已经sovled这样的问题:)

  1. 转到谷歌Developper控制台 https://cloud.google.com/console
  2. 选择您的游戏项目,进入原料药和放大器;验证>Creditentials
  3. 删除所有的客户端ID为Android应用程序你有

在这一点上,我们没有什么更多的事情要做,在谷歌Developper控制台。

  1. 转到 Android的Developper控制台 https://play.google.com/apps/publish
  2. 在播放服务,请选择您的游戏
  3. 进入链接的应用程序
  4. 创建一个新的链接的应用程序的Andr​​oid,并把它放在你的生产许可证SHA1
  5. 创建一个新的链接的应用程序的Andr​​oid,并把它放在你的调试证书SHA1
  6. 在等待了几个变化被部署

现在,我们需要明确的Andr​​oid应用程序缓存尝试连接之前

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

和...它的作品! (至少对我来说......)我的问题是,我已经创建了链接的应用程序从谷歌开发者控制台的而不是 Android的Developper控制台 ...

Google Play Game Services is testing:

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

When onSignInFailed() is called, the following pop-up message appears:

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

解决方案

I have sovled the problem like this :)

  1. Go to Google Developper Console https://cloud.google.com/console
  2. Select Your game project, go to "APIs & Auth" > "Creditentials"
  3. Delete all the "Client ID for Android application" you have

At this point, we don't have anything more to do in the Google Developper Console.

  1. Go to Android Developper Console https://play.google.com/apps/publish
  2. Select your game in Play service
  3. Go to "linked applications"
  4. Create a NEW linked application android and put it your production certificate SHA1
  5. Create a NEW linked application android and put it your debug certificate SHA1
  6. Wait a few to changes be deployed

Now, we need to clear the Android Application cache before trying to connect

  1. Clear cache of your application
  2. Launch your app

And... It's works !! (For me at least...) My problem was that I've created the linked apps from the Google Developer Console instead of the Android Developper Console...

这篇关于爪哇 - 谷歌玩游戏服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆