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 Error with conflicting packages Unity.Burst.Cecil and Unity.Cecil

Discussion in 'Burst' started by lotus_designz, May 10, 2023.

  1. lotus_designz

    lotus_designz

    Joined:
    Aug 30, 2020
    Posts:
    18
    I downloaded the Huawei HMS AGC Services from the package manager then immediately I encountered errors in the console:

    Assets\HuaweiService\apm\Editor\TraceInjectPostProecess.cs(83,36): error CS0433: The type 'ModuleDefinition' exists in both 'Unity.Burst.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=fc15b93552389f74' and 'Unity.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=fc15b93552389f74'

    Assets\HuaweiService\apm\Editor\TraceInjectPostProecess.cs(83,61): error CS0433: The type 'MethodDefinition' exists in both 'Unity.Burst.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=fc15b93552389f74' and 'Unity.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=fc15b93552389f74'

    Assets\HuaweiService\apm\Editor\TraceInjectPostProecess.cs(83,86): error CS0433: The type 'TypeDefinition' exists in both 'Unity.Burst.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=fc15b93552389f74' and 'Unity.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=fc15b93552389f74'

    Assets\HuaweiService\apm\Editor\TraceInjectPostProecess.cs(83,107): error CS0433: The type 'AssemblyDefinition' exists in both 'Unity.Burst.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=fc15b93552389f74' and 'Unity.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=fc15b93552389f74'

    Assets\HuaweiService\apm\Editor\TraceInjectPostProecess.cs(149,57): error CS0433: The type 'TypeDefinition' exists in both 'Unity.Burst.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=fc15b93552389f74' and 'Unity.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=fc15b93552389f74'

    Assets\HuaweiService\apm\Editor\TraceInjectPostProecess.cs(149,78): error CS0433: The type 'MethodDefinition' exists in both 'Unity.Burst.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=fc15b93552389f74' and 'Unity.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=fc15b93552389f74'

    Assets\HuaweiService\apm\Editor\TraceInjectPostProecess.cs(149,103): error CS0433: The type 'AssemblyDefinition' exists in both 'Unity.Burst.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=fc15b93552389f74' and 'Unity.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=fc15b93552389f74'



    I don't know how to remove Burst, it's not allowing me to remove in the package manager. I need help on how to resolve this so I can use the Huawei package, thank you
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    3,721
    lotus_designz likes this.
  3. MarcoPersson

    MarcoPersson

    Unity Technologies

    Joined:
    Jul 21, 2021
    Posts:
    42
    Hi @lotus_designz, what version of Burst is being used in your project? This issue should have been fixed in 1.8.4, so if your project is using an older version of Burst try updating to 1.8.4.
     
    lotus_designz likes this.
  4. lotus_designz

    lotus_designz

    Joined:
    Aug 30, 2020
    Posts:
    18
    Greetings sir, I'm using version 1.6.6, but I'm not able to find the button telling me to update it

    BTW I am using Unity 2021.3.10f1 and HMS 2.4.1
     

    Attached Files:

    Last edited: May 10, 2023
  5. lotus_designz

    lotus_designz

    Joined:
    Aug 30, 2020
    Posts:
    18
    I was able to resolve the errors but it was a shot in the dark - I downloaded the update by inputting the package name (com.unity.burst) and the version (1.8.4) by clicking the big plus sign in the Package Manager window and clicking 'add package by name'.
     

    Attached Files:

    Lee_Hammerton and MarcoPersson like this.
  6. MarcoPersson

    MarcoPersson

    Unity Technologies

    Joined:
    Jul 21, 2021
    Posts:
    42
    @lotus_designz yes, you did the right thing.
    Glad to hear that resolved it!
     
    Lee_Hammerton likes this.
  7. anasssssss

    anasssssss

    Joined:
    May 20, 2016
    Posts:
    2
    you are my hero