Need help with Google Ads and Analytics Error - Missing Method Exception

Dear Community,

I receive the below console error message and am not sure where to start. The error message count increases very fast, even when the game is not in Play Mode. I have loaded Firebase, Google Analytics and Admob SDKs into the project which is causing the problem.

Any guidance would be greatly appreciated.

Error Message:

MissingMethodException: Method not found: ‘GooglePlayServices.UnityCompat.get_ApplicationId’.
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorApplicationBindings.gen.cs:197)

I have the same problem.

After try to remove and reinstall the packages so I found the cause of this problem.

The problem is conflict between these 4 dlls
Google.IOSResolver.dll and Google.IOSResolver_v1.x.xx.x.dll
Google.JarResolver.dll and Google.JarResolver_v1.x.xx.x.dll
Google.PackageManager.dll and Google.PackageManager_v1.x.xx.x.dll
Google.VersionHandler.dll and Google.VersionHandler_v1.x.xx.x.dll

So I decide to remove and reinstall again.

  • The first time I remove 4 file that not has _v1.x.xx.x on it name, same problem occur.
  • Second time I remove 4 file that has _v1.x.xx.x on it name, same problem occur.

So the third time I reinstall both of them and I don’t delete any conflict dll. I’m not sure what I done later.
But when I remove the file play-services-resolver_v1.x.xx.x.txt and wait for a few second unity popup the dialog ask me about resolving this conflict by deleting the deprecated version.

And the result from resolving conflict by unity, some dll files are automatically deleted and Unity recreate file play-services-resolver.txt with this four dll inside.

Google.IOSResolver_v1.x.xx.x.dll
Google.JarResolver_v1.x.xx.x.dll
Google.PackageManager.dll
Google.VersionHandler.dll

After that the problem is gone.

So I think this is the dll combination that work if you install these two packages.

Unfortunately the only solution that worked for us was to delete the previously imported Firebase and all of its libraries and import a newer version of Firebase. Hope this helps.

@Venture87

First add the admob package
then update the play services resolver

Assets-> Play Services Resolver → Version Handler → Update

now add the firebase analytics package

enjoy! :slight_smile: