Unity Google Play游戏插件:未授权错误

时间:2019-02-14 06:16:49

标签: android unity3d google-play-services google-play-games

我正在开发一个Android游戏。我正在使用真实的设备进行测试。该游戏使用Google游戏服务。当我尝试实施游戏服务登录授权失败时会失败。该错误仅在使用EnableSavedGames()时出现。如果我不使用EnableSavedGames(),则可以登录。有人可以帮我解决这个问题吗?。

  using GooglePlayGames;
        using GooglePlayGames.BasicApi;
        using UnityEngine.SocialPlatforms;
        PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()
            // enables saving game progress.
            .EnableSavedGames()
            .Build();
        PlayGamesPlatform.InitializeInstance(config);
        // recommended for debugging:
        PlayGamesPlatform.DebugLogEnabled = true;
        // Activate the Google Play Games platform
        PlayGamesPlatform.Activate();

登录代码

Social.localUser.Authenticate((bool success) => {
        // handle success or failure
    });

1 个答案:

答案 0 :(得分:0)

新创建的Play游戏服务项目存在错误。它来自Google,而他们仍在努力解决此问题。

https://github.com/playgameservices/play-games-plugin-for-unity/issues/2429

您可以通过此链接关注此问题。我希望他们能尽快解决。

相关问题