- Home /
Question by
ProGrahamCracker · Jul 19, 2017 at 09:48 PM ·
androidpluginsgooglepush notification
Why does my editor throw an error using firebase plugin?
I have the most recent unity and the most recent firebase plugin. I want to use it for push notifications and analytics. I have downloaded the google-services.json file. and my project only contains the firebase plugin assets. When I switch my project to an Android project, it throws this error.
ArgumentNullException: Argument cannot be null.
Parameter name: collection
System.Collections.Generic.List`1[Google.JarResolver.Dependency].CheckCollection (IEnumerable`1 collection) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:435)
System.Collections.Generic.List`1[Google.JarResolver.Dependency]..ctor (IEnumerable`1 collection) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:58)
Google.JarResolver.ResolutionException..ctor (System.String msg, IEnumerable`1 missingDependencies)
Google.JarResolver.PlayServicesSupport.FindCandidate (Google.JarResolver.Dependency dep, System.Collections.Generic.List`1 repoPaths, Boolean logMissing)
Google.JarResolver.PlayServicesSupport.LoadDependencies (System.Collections.Generic.Dictionary`2 dependencies, System.Collections.Generic.List`1 repoPaths, Boolean keepMissing, Boolean findCandidates)
Google.JarResolver.PlayServicesSupport.LoadDependencies (Boolean allClients, Boolean keepMissing, Boolean findCandidates)
Google.JarResolver.PlayServicesSupport.FindMissingDependencyPaths (System.String destinationDirectory, System.Collections.Generic.Dictionary`2& dependencyPaths, Google.JarResolver.ExplodeAar explodeAar)
GooglePlayServices.ResolverVer1_1.DoResolution (Google.JarResolver.PlayServicesSupport svcSupport, System.String destinationDirectory, Google.JarResolver.OverwriteConfirmation handleOverwriteConfirmation, System.Action resolutionComplete)
GooglePlayServices.PlayServicesResolver.Resolve (System.Action resolutionComplete)
GooglePlayServices.PlayServicesResolver.AutoResolve ()
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorApplication.cs:109)
Has anyone seen this or know what im doing wrong. please help and thanks!!!
-Me
Comment
Best Answer
Answer by Soniya_unity · Jul 20, 2017 at 09:12 AM
just delete all old firebase plugin , install new firebase messaging plugin one and make sure your bundle id should same as your google-services.json file at the time of create new project in firebase
This actually worked. Thanks! I suppose that maybe something didnt download correctly.