简体   繁体   中英

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

I'm working on a game in Unity3D and integrated services have Google Play games , but when importing the plug GoogleMobileAds , it throws me errors.

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, but when I import both plugins, I get these two errors:

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

and

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

How do I fix this?

您可以尝试删除Assets / PlayServicesResolver / Editor /中的JarResolverLib.dll文件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM