Error creating GameServices object

When trying to authenticate a local user, I see the following exception:

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 

      

Errors from NativeSDK games:

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.

      

What does this error mean and how to fix it?

I am using the latest version available from the Google Play Games Plugin for Unity :

+3


source to share


2 answers


Just for future reference, @mrggl also said:

The thread related error is mostly caused by an outdated version of the Google Play Services client library. Make sure you have updated to the latest version, retry android setup in Google Play Games and then try again.



Just in case the error prevails, see the same problem

+4


source


https://github.com/playgameservices/play-games-plugin-for-unity/issues/280 partially fixed this issue.

@mrggl said:



It could be a problem with the current plugin having a transient dependency on libc ++ _ shared.so - which case, linking against standard libraries statically might solve this problem.

I installed the statically linked version of libgpg here: https://github.com/playgameservices/play-games-plugin-for-unity/tree/debug_libgpg/debug . Overwrite old libgpg versions with them and see if it solves the problem!

0


source







All Articles