googleanalytics / google-analytics-plugin-for-unity

Google Analytics plugin for the Unity game creation system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ArgumentNullException: Value cannot be null. Parameter name: collection

AlexChesser opened this issue · comments

Steps to replicate:

  • unity version 2019.2.6f1 (windows)
  • new project (LWRP)
  • download & import GoogleAnalyticsV4_nobitcode.unitypackage
  • update android manifest per instructions

console error shows the following:

ArgumentNullException: Value cannot be null.
Parameter name: collection
System.ThrowHelper.ThrowArgumentNullException (System.ExceptionArgument argument) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
System.Collections.Generic.List`1[T]..ctor (System.Collections.Generic.IEnumerable`1[T] collection) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
Google.JarResolver.ResolutionException..ctor (System.String msg, System.Collections.Generic.IEnumerable`1[T] missingDependencies) (at <2e7565b8c6384c7389346c91ccf60c3b>:0)
Google.JarResolver.PlayServicesSupport.FindCandidate (Google.JarResolver.Dependency dep, System.Collections.Generic.List`1[T] repoPaths, System.Boolean logMissing) (at <2e7565b8c6384c7389346c91ccf60c3b>:0)
Google.JarResolver.PlayServicesSupport.LoadDependencies (System.Collections.Generic.Dictionary`2[TKey,TValue] dependencies, System.Collections.Generic.List`1[T] repoPaths, System.Boolean keepMissing, System.Boolean findCandidates) (at <2e7565b8c6384c7389346c91ccf60c3b>:0)
Google.JarResolver.PlayServicesSupport.LoadDependencies (System.Boolean allClients, System.Boolean keepMissing, System.Boolean findCandidates) (at <2e7565b8c6384c7389346c91ccf60c3b>:0)
Google.JarResolver.PlayServicesSupport.FindMissingDependencyPaths (System.String destinationDirectory, System.Collections.Generic.Dictionary`2[System.String,System.String]& dependencyPaths, Google.JarResolver.PlayServicesSupport+ExplodeAar explodeAar) (at <2e7565b8c6384c7389346c91ccf60c3b>:0)
GooglePlayServices.ResolverVer1_1.DoResolutionUnsafe (Google.JarResolver.PlayServicesSupport svcSupport, System.String destinationDirectory, Google.JarResolver.PlayServicesSupport+OverwriteConfirmation handleOverwriteConfirmation, System.Action resolutionComplete) (at <2e7565b8c6384c7389346c91ccf60c3b>:0)
GooglePlayServices.ResolverVer1_1+<DoResolution>c__AnonStorey17.<>m__25 () (at <2e7565b8c6384c7389346c91ccf60c3b>:0)
GooglePlayServices.ResolverVer1_1.UpdateTryResolution () (at <2e7565b8c6384c7389346c91ccf60c3b>:0)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:303)

It appears to be the case that if I DELETE the the current play services resolver that is imported with the GoogleAnalyticsV4_nobitcode.unitypackage from the included version to 1.2.125.0 the exception listed above goes away.

The following pull request addresses this issue #190

@baldwin628, @emmanuellemm please let me know if there is anything else you'd require in terms of getting this pull request shepherded through your contribution process. Not sure if you require contributor agreements and so on.

Thanks