3

当试图我看到了一个异常发生的本地用户进行身份验证:错误创建一个GameServices对象

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

回答

4

只是以供将来参考,@mrggl也说:

在堆栈溢出线程引用的错误主要是由 引起的输出的谷歌Play服务的客户端库的最新版本。 确保您已更新至最新版本,请在Google Play游戏中重新运行Android设置,然后重试。

以防万一出错盛行,see the same issue

0

https://github.com/playgameservices/play-games-plugin-for-unity/issues/280部分修复了这个问题。

@mrggl说:

这可能是与当前插件对libc的 传递依赖的事实的问题++ _ shared.so - 是这样的话,连接 对标准库静态威力解决这个问题。

我已经提交了一个静态链接的libgpg版本: https://github.com/playgameservices/play-games-plugin-for-unity/tree/debug_libgpg/debug。 用这些覆盖旧版本的libgpg,看看这个 是否解决了这个问题!