如何解决当 SavedGames 启用 Unity 时,谷歌播放服务的错误
我正在尝试进行 gogle play 云保存,但是当我在代码中启用保存的游戏选项时,身份验证停止工作。可能是什么问题呢? 如果我写这个连接不会是(( PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder().RequestServerAuthCode(false).EnableSavedGames().Build(); PlayGamesPlatform.DebugLogEnabled = true; PlayGamesPlatform.InitializeInstance(config);
adb logcat
1C4
E/PlayGamesServices[SignInAuthenticator](32263): ** APP NOT CORRECTLY CONFIGURED TO USE GOOGLE PLAY GAME SERVICES
E/PlayGamesServices[SignInAuthenticator](32263): ** DEVELOPER_ERROR
E/PlayGamesServices[SignInAuthenticator](32263): ** This is usually caused by one of these reasons:
E/PlayGamesServices[SignInAuthenticator](32263): ** (1) Your package name and certificate fingerprint do not match
E/PlayGamesServices[SignInAuthenticator](32263): ** the client ID you registered in Developer Console.
E/PlayGamesServices[SignInAuthenticator](32263): ** (2) Your App ID was incorrectly entered.
E/PlayGamesServices[SignInAuthenticator](32263): ** (3) Your game settings have not been published and you are
E/PlayGamesServices[SignInAuthenticator](32263): ** trying to log in with an account that is not listed as
E/PlayGamesServices[SignInAuthenticator](32263): ** a test account.
E/PlayGamesServices[SignInAuthenticator](32263): ** (4) A server auth code was requested,but an incorrect client
E/PlayGamesServices[SignInAuthenticator](32263): ** id was provided. The client id for server auth codes should
E/PlayGamesServices[SignInAuthenticator](32263): ** be the client id for the game server (not the android app).
如果我写这个代码并评论
//PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder().RequestServerAuthCode(false).EnableSavedGames().Build();
PlayGamesPlatform.DebugLogEnabled = true;
//PlayGamesPlatform.InitializeInstance(config);
PlayGamesPlatform.Activate();
Social.localUser.Authenticate((bool success) => {
if(success)
{
OpenSave(false);
}
else
{
}
});
一切正常,但保存到云端不起作用,请您帮忙吗?)我该如何解决这个问题?)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。