Question

I have downloaded Google Play Services Plugin with github and Export package in Unity (Version 4.3.4f1). but I can see 3 errors which are:

Assets/GooglePlayGames/Platforms/Android/AndroidRtmpClient.cs(491,62): error CS1502: The best overloaded method match for `GooglePlayGames.BasicApi.Multiplayer.Participant.Participant(string, string, GooglePlayGames.BasicApi.Multiplayer.Participant.ParticipantStatus, GooglePlayGames.BasicApi.Multiplayer.Player, bool)' has some invalid arguments

Assets/GooglePlayGames/Platforms/Android/AndroidRtmpClient.cs(491,62): error CS1503: Argument `#4' cannot convert `object' expression to type `GooglePlayGames.BasicApi.Multiplayer.Player'

Assets/GooglePlayGames/Platforms/Android/AndroidRtmpClient.cs(491,54): error CS1729: The type `Player' does not     contain a constructor that takes `2' arguments

Please help me.

Was it helpful?

Solution

In my case this was happening because I had Player class defined both in my code and in Google Play Games unity package. When I renamed my class everything worked as expected.

OTHER TIPS

This happens because of another Player class, simply check where the error is and change Player to GooglePlayGames.BasicApi.Multiplayer.Player (this means that the script will get the Player class from google play games) on the errors of google play games scripts.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top