Hello I want to build my game for Android but I get this error 2 times when it builds: Library\PackageCache\com.unity.collections@2.1.4\Unity.Collections\NativeList.cs(837,24): error CS7036: There is no argument given that corresponds to the required formal parameter ‘safety’ of ‘NativeArray.ReadOnly.ReadOnly(void*, int, ref AtomicSafetyHandle)’ Library\PackageCache\com.unity.collections@2.1.4\Unity.Collections\NativeList.cs(851,24): error CS7036: There is no argument given that corresponds to the required formal parameter ‘safety’ of ‘NativeArray.ReadOnly.ReadOnly(void*, int, ref AtomicSafetyHandle)’ And If I press on them, they point me here
What can I do about it? I tried some fixes that I have found online but they don’t work… I have IL2CPP installed from Unity hub…
Try upgrading the collections package, 2.4.0 is the current version.
I’m encountering this when building for iOS from Mac in 2023.3.23f1 (Silicon) as well. Manually updating the Collections via name to 2.4.0 (2.1.4 is recommended for 2023.3.23f1, but that doesn’t work either) did not help, same issue. Lots of bugs with 2023.3.23f1…
I managed to build my game using Unity 2021 (latest LTS), 2022 its broken for me on Android at least.
UPDATE: It doesn’t work even in 2021 now…
Upgrading from 2021.3 to Unity 6 and am also getting this error.
I’m building for Windows Desktop.
I’m a Unity Industry customer and should get expedited Tech Support. Will report back.
Upgraded To:
Collections v2.5.3
Burst 1.8.21
This is very frustrating since it involves packages (Burst/Native Collections) that I’m not even using in my project. The URP Package needs them, however.
My issue was solved by:
- Exiting the Editor
- Deleting the entire Library Folder
- Re-opening the Editor
This may not be the solution to the original question, so I will not mark it solved.

