Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Installing Analytics package in Unity 2019.4.40f1 causes CS0234 Namespace not found errors

Discussion in 'Unity Analytics' started by DustyDev, May 17, 2023.

  1. DustyDev

    DustyDev

    Joined:
    Sep 23, 2015
    Posts:
    40
    Hello all,

    Looks like something isn't compatible with my project in the com.unity.services.core package with 2019.4.40. I have the following sorts of errors on import:


    Library\PackageCache\com.unity.services.core@1.4.0\Editor\Core\EditorGameService\EditorGameServiceFlagEnabler.cs(4,27): error CS0234: The type or namespace name 'Internal' does not exist in the namespace 'Unity.Services.Core' (are you missing an assembly reference?)

    Library\PackageCache\com.unity.services.core@1.4.0\Editor\Core\EditorGameService\EditorGameServiceRemoteConfiguration.cs(4,27): error CS0234: The type or namespace name 'Configuration' does not exist in the namespace 'Unity.Services.Core' (are you missing an assembly reference?)

    Library\PackageCache\com.unity.services.core@1.4.0\Editor\Core\EditorGameService\EditorGameServiceRemoteConfiguration.cs(6,27): error CS0234: The type or namespace name 'Networking' does not exist in the namespace 'Unity.Services.Core' (are you missing an assembly reference?)

    Library\PackageCache\com.unity.services.core@1.4.0\Editor\Core\Telemetry\OperatePackageVersionConfigProvider.cs(6,27): error CS0234: The type or namespace name 'Telemetry' does not exist in the namespace 'Unity.Services.Core' (are you missing an assembly reference?)

    Library\PackageCache\com.unity.services.core@1.4.0\Editor\Core\ProjectStateManagement\IServiceFlagRequest.cs(8,9): error CS0246: The type or namespace name 'IAsyncOperation<>' could not be found (are you missing a using directive or an assembly reference?)

    Library\PackageCache\com.unity.services.core@1.4.0\Editor\Core\UserRoleManagement\UserRoleRequest.cs(57,96): error CS0308: The non-generic type 'AsyncOperation' cannot be used with type arguments

    Library\PackageCache\com.unity.services.core@1.4.0\Editor\Core\Telemetry\OperatePackageVersionConfigProvider.cs(14,49): error CS0246: The type or namespace name 'IConfigurationProvider' could not be found (are you missing a using directive or an assembly reference?)

    Library\PackageCache\com.unity.services.core@1.4.0\Editor\Core\Telemetry\OperatePackageVersionConfigProvider.cs(28,13): error CS0540: 'OperatePackageVersionConfigProvider.IOrderedCallback.callbackOrder': containing type does not implement interface 'IOrderedCallback'

    Library\PackageCache\com.unity.services.core@1.4.0\Editor\Core\Telemetry\OperatePackageVersionConfigProvider.cs(30,61): error CS0246: The type or namespace name 'ConfigurationBuilder' could not be found (are you missing a using directive or an assembly reference?)

    Library\PackageCache\com.unity.services.core@1.4.0\Editor\Core\Telemetry\OperatePackageVersionConfigProvider.cs(30,14): error CS0538: 'IConfigurationProvider' in explicit interface declaration is not an interface

    Library\PackageCache\com.unity.services.core@1.4.0\Editor\Core\EditorGameService\EditorGameServiceRemoteConfiguration.cs(28,26): error CS0246: The type or namespace name 'IHttpClient' could not be found (are you missing a using directive or an assembly reference?)

    There's 41 of these errors in total, but I think this covers all the different types. Analytics is enabled in the services window. This does not seem to happen on new projects, but is happening in my project for some reason. Any suggestions here would be appreciated.
     
    Last edited: May 22, 2023
  2. DustyDev

    DustyDev

    Joined:
    Sep 23, 2015
    Posts:
    40
    Not sure what the problem was, but I uninstalled a bunch of my packages, restarted the editor, reinstalled the Analytics Package, restarted the editor again, and this resolved the issue ¯\_(ツ)_/¯
     
    SebT_Unity likes this.