Android 创建GameServices对象时出错

Android 创建GameServices对象时出错,android,plugins,unity3d,google-play-services,google-play-games,Android,Plugins,Unity3d,Google Play Services,Google Play Games,尝试验证本地用户时,我看到下一个异常发生: 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.P

尝试验证本地用户时,我看到下一个异常发生:

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 
这个错误意味着什么?我如何修复它

我使用的是最新版本,可从以下网址获得:

部分修复了此问题

@格格先生说:

这可能是一个问题,因为当前的插件 对libc++\u shared.so的可传递依赖性-就是这样,链接 静态地针对标准库可能会解决此问题

我在这里提交了一个静态链接版本的libgpg: . 用这些覆盖旧版本的libgpg,看看是否 解决这个问题


@mrggl还说,仅供将来参考:

堆栈溢出线程中引用的错误主要是由 Google Play Services客户端库的过时版本。 请确保已更新到最新版本,然后重新运行 android安装程序在谷歌播放游戏,然后重试

以防万一错误占上风

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.