Play-games-plugin-for-unity: Play Services & Appodeal

Created on 11 Apr 2017  路  2Comments  路  Source: playgameservices/play-games-plugin-for-unity

Hi, I'm using this plugin for a mobile game and I want there ads, so I decided to add Appodeal. First I've imported Appodeal and than GPS. But,when I finish the Import they show two errors that I couldn't find any solution.

Assets/PlayServicesResolver/Editor/IResolver.cs(74,27): error CS0433: The imported type `Google.JarResolver.PlayServicesSupport' is defined multiple times

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

Someone here to help me please? Thank you..

Most helpful comment

This is the answer they gave me from the Appodeal support center (still have to test it, had to clean my project and reinstall GPGS, but the version 0.9.37 gave me heavy headaches. I just solved going back to the v0.9.36 of GPGS and now I'll test the Appodeal thing) :

Hi. Sorry for a long delay. To handle that you need to try this:

  • Clean your project. Exclude GPGS, Appodeal.
  • Add GPGS
  • Add Appodeal without PlayServicesResolver.
  • Open Assets/GooglePlayGames/Editor/GPGSDependencies.cs and add after 52'st string (see below)
  • Run Googe Play Services.
    Done
    Must work without any affect on Appodeal and GPGS side. 馃槈

Google.VersionHandler.InvokeInstanceMethod(
svcSupport, "DependOn",
new object[] {
"com.google.android.gms",
"play-services-ads",
"LATEST" },
namedArgs: new Dictionary() {
{"packageIds", new string[] { "extra-google-m2repository" } }
});
Google.VersionHandler.InvokeInstanceMethod(
svcSupport, "DependOn",
new object[] {
"com.google.android.gms",
"play-services-location",
"LATEST" },
namedArgs: new Dictionary() {
{"packageIds", new string[] { "extra-google-m2repository" } }
});

All 2 comments

This is the answer they gave me from the Appodeal support center (still have to test it, had to clean my project and reinstall GPGS, but the version 0.9.37 gave me heavy headaches. I just solved going back to the v0.9.36 of GPGS and now I'll test the Appodeal thing) :

Hi. Sorry for a long delay. To handle that you need to try this:

  • Clean your project. Exclude GPGS, Appodeal.
  • Add GPGS
  • Add Appodeal without PlayServicesResolver.
  • Open Assets/GooglePlayGames/Editor/GPGSDependencies.cs and add after 52'st string (see below)
  • Run Googe Play Services.
    Done
    Must work without any affect on Appodeal and GPGS side. 馃槈

Google.VersionHandler.InvokeInstanceMethod(
svcSupport, "DependOn",
new object[] {
"com.google.android.gms",
"play-services-ads",
"LATEST" },
namedArgs: new Dictionary() {
{"packageIds", new string[] { "extra-google-m2repository" } }
});
Google.VersionHandler.InvokeInstanceMethod(
svcSupport, "DependOn",
new object[] {
"com.google.android.gms",
"play-services-location",
"LATEST" },
namedArgs: new Dictionary() {
{"packageIds", new string[] { "extra-google-m2repository" } }
});

You can manually remove multiple versions of the JarResolver when importing multiple plugins. I recommend using the most latest jar resolver version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

parkJeongOck picture parkJeongOck  路  4Comments

ivribalko picture ivribalko  路  3Comments

SQuirkster picture SQuirkster  路  3Comments

marcus13345 picture marcus13345  路  3Comments

temresen picture temresen  路  4Comments