invalid classname : An exception was thrown by the type initializer for GooglePlayGames.Editor.GPGSDependencies

i’ve import google game services into my unity 5 project, but setup thrown that error :

invalid classname : An exception was thrown by the type initializer for GooglePlayGames.Editor.GPGSDependencies

can you help me?

(all constants are right & i have last version of google play game services plugin & last version of android SDK & last version of unity3d)

@timofey123456, Try updating these 3 packages:

  1. Android Support Library
  2. Google Play services
  3. Google Repository

The only one people have not been talking in this thread is the “Google Repository”. It’s located in Extras as well, next to Google Play Repository.

I FOUND THE FIX!

Took a lot of work.
1: Delete the plugin from your project. Close Unity.
2: Update your JDK to the VERY LATEST
3: Get Android Studio and look into the SDK manager
4: Download everything in this post: Invalid classname Issue · Issue #1197 · playgameservices/play-games-plugin-for-unity · GitHub
5: Hope for good luck

Don’t forget to mark this as answer if it solved your issue!

Try to update Android Support Repository and Google Play Service in Android SDK Manager

I’ve updated Android Support Repository and Google Play Service in Android SDK Manager and it’s help me with same problem.