playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.46k stars 966 forks source link

There was an error creating a GameServices object. Check for log errors from GamesNativeSDK #1908

Open rmehta123 opened 7 years ago

rmehta123 commented 7 years ago

Getting error

09-11 14:59:53.073 12161 12177 I Unity : Building GPG services, implicitly attempts silent auth 09-11 14:59:53.073 12161 12177 I Unity :
09-11 14:59:53.073 12161 12177 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 09-11 14:59:53.073 12161 12177 I Unity : 09-11 14:59:53.109 12161 12177 I Unity : InvalidOperationException: There was an error creating a GameServices object. Check for log errors from GamesNativeSDK 09-11 14:59:53.109 12161 12177 I Unity : at GooglePlayGames.Native.PInvoke.GameServicesBuilder.Build (GooglePlayGames.Native.PInvoke.PlatformConfiguration configRef) [0x00000] in :0 09-11 14:59:53.109 12161 12177 I Unity : at GooglePlayGames.Native.NativeClient.InitializeGameServices () [0x00000] in :0 09-11 14:59:53.109 12161 12177 I Unity : at GooglePlayGames.Native.NativeClient.Authenticate (System.Action2 callback, Boolean silent) [0x00000] in <filename unknown>:0 09-11 14:59:53.109 12161 12177 I Unity : at GooglePlayGames.PlayGamesPlatform.Authenticate (System.Action2 callback, Boolean silent) [0x00000] in :0 09-11 14:59:53.109 12161 12177 I Unity : at GooglePlayGames.PlayGamesPlatform.Authenticate (System.Action1 callback, Boolean silent) [0x00000] in <filename unknown>:0 09-11 14:59:53.109 12161 12177 I Unity : at GooglePlayGames.PlayGamesPlatform.Authenticate (System.Action1 callback) [0x00000] in :0 09-11 14:59:53.109 12161 12177 I Unity : at GooglePlayGames.PlayGamesLocalUser.Authenticate (System.Action`1 callback) [0x00000] in :0 09-11 14:59:53.109 12161 12177 I Unity : at GoogleLoginS.l 09-11 14:59:53.122 12161 12177 W Unity : !!! [Play Games Plugin DLL] 09/11/17 14:59:53 +05:30 WARNING: Creating new PlayGamesPlatform 09-11 14:59:53.122 12161 12177 W Unity :
09-11 14:59:53.122 12161 12177 W Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 09-11 14:59:53.122 12161 12177 W Unity : 09-11 14:59:53.122 12161 12177 I Unity : [Play Games Plugin DLL] 09/11/17 14:59:53 +05:30 DEBUG: Activating PlayGamesPlatform. 09-11 14:59:53.122 12161 12177 I Unity :
09-11 14:59:53.122 12161 12177 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 09-11 14:59:53.122 12161 12177 I Unity : 09-11 14:59:53.122 12161 12177 I Unity : [Play Games Plugin DLL] 09/11/17 14:59:53 +05:30 DEBUG: PlayGamesPlatform activated: GooglePlayGames.PlayGamesPlatform 09-11 14:59:53.122 12161 12177 I Unity :
09-11 14:59:53.122 12161 12177 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 09-11 14:59:53.122 12161 12177 I Unity : 09-11 14:59:53.122 12161 12177 I Unity : [Play Games Plugin DLL] 09/11/17 14:59:53 +05:30 DEBUG: Creating platform-specific Play Games client. 09-11 14:59:53.122 12161 12177 I Unity :
09-11 14:59:53.122 12161 12177 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 09-11 14:59:53.122 12161 12177 I Unity : 09-11 14:59:53.122 12161 12177 I Unity : [Play Games Plugin DLL] 09/11/17 14:59:53 +05:30 DEBUG: Creating Android IPlayGamesClient Client

I have updated sdk and plugin

rmehta123 commented 7 years ago

I am using unity 5.5.1.f1 And google ads And GPGS

I think it is because of GPGS and Google ads conflict .

claywilkinson commented 7 years ago

There should be other errors earlier in the log (don't filter on Unity so you can see them) and it will be the cause of the problem.

iHaris93 commented 7 years ago

Using Unity 5.6.0f3, Google AdMob, Google Play Game Services 0.9.41, facing the same error:

09-16 20:26:25.437  8106  8119 I Unity   :   at GooglePlayGames.Native.PInvoke.GameServicesBuilder.Build (GooglePlayGames.Native.PInvoke.PlatformConfiguration configRef) [0x00000] in <filename unknown>:0
09-16 20:26:25.437  8106  8119 I Unity   :   at GooglePlayGames.Native.NativeClient.InitializeGameServices () [0x00000] in <filename unknown>:0
09-16 20:26:25.437  8106  8119 I Unity   :   at GooglePlayGames.Native.NativeClient.Authenticate (System.Action`2 callback, Boolean silent) [0x00000] in <filename unknown>:0
09-16 20:26:25.437  8106  8119 I Unity   :   at GooglePlayGames.PlayGamesPlatform.Authenticate (System.Action`2 callback, Boolean silent) [0x00000] in <filename unknown>:0
09-16 20:26:25.437  8106  8119 I Unity   :   at GooglePlayGames.PlayGamesPlatform.Authenticate (System.Action`1 callback, Boolean silent) [0x00000] in <filename unknown>:0
rmehta123 commented 7 years ago

@iHaris93 Can you share log with out filtering unity. I have updated both plugin and now I am getting dex error at build time. So please share log If you can.

artemgarmash commented 7 years ago

The same thing on Unity 2017.1f1 with AdMob, PGPS 0.9.41

eintopf commented 6 years ago

Same issue Unity 2017.1.2f1 with Admob, GPGS 0.9.40 and Firebase. Also tried with 0.9.41 - same problem.

Reizoe commented 6 years ago

Did anyone figure out how to solve this?

eintopf commented 6 years ago

For me it was something with Proguard stripping libraries. So I adjusted the pro guard file. Unfortunately i’m not at home right now, so I can’t tell about the exact file content.