gpt4 book ai didi

android - 创建 GameServices 对象时出错

转载 作者:太空宇宙 更新时间:2023-11-03 13:21:36 24 4
gpt4 key购买 nike

当尝试对本地用户进行身份验证时,我看到下一个异常发生:

I/Unity   (11264):  [Play Games Plugin DLL] 11/22/14 12:32:38 -05:00 DEBUG: Activating PlayGamesPlatform.
I/Unity (11264): [Play Games Plugin DLL] 11/22/14 12:32:38 -05:00 DEBUG: PlayGamesPlatform activated: GooglePlayGames.PlayGamesPlatform
I/Unity (11264): [Play Games Plugin DLL] 11/22/14 12:32:38 -05:00 DEBUG: Creating platform-specific Play Games client.
I/Unity (11264): [Play Games Plugin DLL] 11/22/14 12:32:38 -05:00 DEBUG: Creating real IPlayGamesClient

D/GamesUnitySDK(11264): Performing Android initialization of the GPG SDK

I/Unity (11264): InvalidOperationException: There was an error creating a GameServices object. Check for log errors from GamesNativeSDK
I/Unity (11264): at GooglePlayGames.Native.PInvoke.GameServicesBuilder.Build (GooglePlayGames.Native.PInvoke.PlatformConfiguration configRef) [0x00000] in <filename unknown>:0
I/Unity (11264): at GooglePlayGames.Native.NativeClient.InitializeGameServices () [0x00000] in <filename unknown>:0
I/Unity (11264): at GooglePlayGames.Native.NativeClient.Authenticate (System.Action`1 callback, Boolean silent) [0x00000] in <filename unknown>:0
I/Unity (11264): at GooglePlayGames.PlayGamesPlatform.Authenticate (System.Action`1 callback, Boolean silent) [0x00000] in <filename unknown>:0
I/Unity (11264): at GooglePlayGames.PlayGamesPlatform.Authenticate (System.Action`1 callback) [0x00000] in <filename unknown>:0
I/Unity (11264): at GooglePlayGames.PlayGamesLocalUser.Authenticate (System.Action`1 callback) [0x00000] in <filename unknown>:0

来自 GamesNativeSDK 的错误:

E/GamesNativeSDK(11264): Can't register class com/google/android/gms/games/snapshot/SnapshotContents: an exception occurred.
E/GamesNativeSDK(11264): Could not register one or more required Java classes.

这个错误是什么意思,我该如何解决?

我正在使用 Google Play Games plugin for Unity 提供的最新版本:

最佳答案

仅供将来引用,@mrggl 还说:

The error referenced in the stack overflow thread is mostly caused by an out of date version of the Google Play Services client library. Make sure that you've updated to the most recent version, rerun android setup in Google Play Games, and then try again.

以防万一出现错误,see the same issue

关于android - 创建 GameServices 对象时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27082532/

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