且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

爪哇 - 谷歌玩游戏服务

更新时间:2023-11-23 08:12:22

我已经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...