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,看看這個 是否解決了這個問題!