Unity-Technologies / HuaweiServiceSample

Public repository for HUAWEI HMS & AGC Unity SDK
43 stars 19 forks source link

Error CS0433 - Type exists in both Unity.Burst.Cecil and Unity.Cecil (v2021.3.10f1 and v2.4.1) #38

Open hybrid-dragon opened 1 year ago

hybrid-dragon commented 1 year ago

I'm using Unity 2021.3.10f1 and Huawei HMS AGC Services version 2.4.1. After importing it from the Package Manager, I immediately encountered errors:

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 tried to remove Burst through the Package Manager but it's not allowing me to. I need help on how to resolve this so I can use the Huawei package, thank you.

nulldatamap commented 1 year ago

Updating Burst to 1.8.4 should fix this issue