Search Unity

Package conflict in StartLiveLinkWindow.cs

Discussion in 'Entity Component System' started by ry511, Jun 9, 2021.

  1. ry511

    ry511

    Joined:
    Jul 24, 2016
    Posts:
    62
    Hey guys,

    Im getting the following error after installing Unity IAP into the project.

    Library\PackageCache\com.unity.entities@0.16.0-preview.21\Unity.Entities.Editor\LiveLink\StartLiveLinkWindow.cs(370,39): error CS0104: 'Platform' is an ambiguous reference between 'Unity.Build.Platform' and 'Bee.Core.Platform'

    There are a couple of spots in that file where there are conflicts, particularly this section.

    Code (CSharp):
    1. static string GetUssClass(Platform platform)
    2.             {
    3.                 switch (platform)
    4.                 {
    5.                     case null:
    6.                         return "start-live-link__item-template__icon-noTarget";
    7.                     case WindowsPlatform _:
    8.                     case UniversalWindowsPlatform _:
    9.                         return "start-live-link__item-template__icon-windows";
    10.                     case LinuxPlatform _:
    11.                     case MacOSXPlatform _:
    12.                         return "start-live-link__item-template__icon-standalone";
    13.                     case XboxOnePlatform _:
    14.                         return "start-live-link__item-template__icon-xboxOne";
    15.                     case IosPlatform _:
    16.                         return "start-live-link__item-template__icon-iOS";
    17.                     case AndroidPlatform _:
    18.                         return "start-live-link__item-template__icon-android";
    19.                     case WebGLPlatform _:
    20.                         return "start-live-link__item-template__icon-webGL";
    21.                     case PS4Platform _:
    22.                         return "start-live-link__item-template__icon-ps4";
    23.                     case TvosPlatform _:
    24.                         return "start-live-link__item-template__icon-tvOS";
    25.                     case SwitchPlatform _:
    26.                         return "start-live-link__item-template__icon-switch";
    27.                     case LuminPlatform _:
    28.                         return "start-live-link__item-template__icon-lumin";
    29.                 }
    30.  
    31.                 return null;
    32.             }
    I can get around it by changing things to point to the 'Unity.Build.Platform' package but im modifying Unity code and I don't think that's the best solution. Any thoughts on another way to work around this?
     
  2. RoyM_Daemon

    RoyM_Daemon

    Joined:
    Nov 10, 2015
    Posts:
    5
    The solution to this is to downgrade your com.unity.platforms to version 9 not version 10