Compile error after adding Unity Collections package
See original GitHub issueAfter adding Unity Collections pakcage, I got this error
Library/PackageCache/com.unity.collections@1.1.0/Unity.Collections/xxHash3.cs(560,27): error CS0234: The type or namespace name 'umul128' does not exist in the namespace 'Common' (are you missing an assembly reference?)
Library/PackageCache/com.unity.collections@1.1.0/Unity.Collections/xxHash3.cs(582,27): error CS0234: The type or namespace name 'umul128' does not exist in the namespace 'Common' (are you missing an assembly reference?)
Library/PackageCache/com.unity.collections@1.1.0/Unity.Collections/xxHash3.cs(589,28): error CS0234: The type or namespace name 'umul128' does not exist in the namespace 'Common' (are you missing an assembly reference?)
Library/PackageCache/com.unity.collections@1.1.0/Unity.Collections/xxHash3.cs(825,22): error CS0234: The type or namespace name 'umul128' does not exist in the namespace 'Common' (are you missing an assembly reference?)
My platform is iOS.
The second answer of this link explains how to add Unity Collections pakcage
https://forum.unity.com/threads/how-do-i-add-the-collections-package.1138399/

Does anyone know how to fix this? Thank you.
Issue Analytics
- State:
- Created 2 years ago
- Comments:15 (3 by maintainers)
Top Results From Across the Web
Compile error after adding Unity Collections package #76
After adding Unity Collections pakcage, I got this error Library/PackageCache/com.unity.collections@1.1.0/Unity.Collections/xxHash3.cs(560 ...
Read more >Bug - Build/compiler error from Collections
We upgraded our game project from 2019.4 to 2020.3.38 and it's working fine -- except that builds fail, due to a bunch of...
Read more >Unity built-in Packages Compiler Errors
Try changing system locale to not Arabic Go to Control Panel > Change date, time or number format> Administrative tab> Change system locale...
Read more >Troubleshooting - Unity's Package Manager
Troubleshooting · Error messages in the Package Manager window · Package Manager missing or window doesn't open · Problems after upgrading Unity to...
Read more >Entities package giving compile error : r/Unity3D
So I'm trying to setup a 3D project in DOTS and the package com.unity.entities@0.17.0-preview.42 gives me the error:.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I solved the issue in the following way:
com.unity.collections@<your_version>
folder from<YourProjectRoot>/Library/PackageCache/
directory to<YourProjectRoot>/Packages/
directory.com.unity.collections@<your_version>/Unity.Collections/xxHash3.cs
.Common.umul128(...)
calls toUnity.Burst.Intrinsics.Common.umul128(...)
calls.The reason for step 1 is that the
Library
directory is “volatile”, so when I edit the script without applying step 1, step 3 was undone with each Unity recompile.Thanks!!! @supiket Your solution saved my life. I am wondering that this issue has been fixed officially or not. I could not find any proper solution anywhere. Thanks again!!!