Google Play Games and GoogleMobileAds do not work together in Unity 5

1

Greetings, I am working on a game in Unity3D and I have integrated the google play games services, but when importing the GoogleMobileAds plugin / strong> throws me errors that I do not know how to solve.

I use:

  • Unity 5.3.5f1 Personal,
  • Google Play Games Plugin 0.9.34,
  • Google Mobile Ads Unity Plugin v3.1.0.

The two plugins work well alone, the problem occurs when I import both plugins, it sends me these two errors:

  

Assets / PlayServicesResolver / Editor / PlayServicesResolver.cs (146.56):   error CS0433: The imported type 'Google.JarResolver.Dependency' is   defined multiple times

Y

  

Assets / GooglePlayGames / Editor / GPGSDependencies.cs (37.23): error   CS0433: The imported type 'Google.JarResolver.PlayServicesSupport' is   defined multiple times

I appreciate your help, because I'm new to this and I'm not sure how to solve this problem.

    
asked by Adelmo Cruz 13.10.2016 в 18:47
source

1 answer

0

It seems that both are getting you the playserviceresolver that serves to be automatically added to the necessary libraries on Android (such as support-v4 or play-games-services-basement).

Look to see if you have 2 folders called PlayServicesResolver and delete one of them. That should solve the problem.

    
answered by 04.02.2017 в 22:40