Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgumentNullException: Value cannot be null. Parameter name: collection #189

Open
AlexChesser opened this issue Sep 27, 2019 · 1 comment

Comments

@AlexChesser
Copy link

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)
@AlexChesser
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant