When building a Dedicated Linux Server with IL2CPP while on a Windows machine, Addressables builds fail 100% of the time with three errors in the console:
InvalidOperationException: Unable to build with the current configuration, please check the Build Settings.
UnityEditor.GenericMenu:CatchMenu(Object, String[], Int32)
This occurs both when trying to build Addressables via the āAddressables Groupsā menu (Build ā New Build ā Default Build Script) and when building both Player and Addressables together (File ā Build Settings ā Build/Build and Run).
It is currently impossible to build Addressables with our current version of Unity. This was not happening on our previous version, which was 2022.3.22f1.
Switching to Mono backend lets us build, but we would prefer not to use Mono and expect IL2CPP to be functional.
I couldnāt get a linux build as well. it seems related to addressables 1.22.2 package comes with unity 2022.3.41. downgraded to 2022.3.39 again and waiting for a proper fix.
If youāre looking for a temp solution, here is what worked for me:
Iāve manually replaced the Addressables package version in the packages.json, it wasnāt in the json but was added as a dependency in the packages-lock.json, so I added this line manually "com.unity.addressables": "2.3.1", and this fixed the build issue for me.
Force updating to 2.3.1 appears to be working at first glance for my project configuration (2022.3.50f1) and the linux addressables build succeeded. Iāll be honest I have no idea what addressables even is so when itās throwing errors when I havenāt even touched it before itās annoying. The localization package uses it somehow, I never have.
The 2.x and 1.x branches have diverged a little bit, but we try to keep bugfixes on both of them. 1.22.3 is the latest in that stream. Has anyone tried to see if 1.22.3 fixes the issue just like 2.3.1 does?
I can confirm that I have the same issue as Cabskee, and my idea was to update the Unity version to Unity 6 and use the 2.3.1 version, and for me was NOT working. My issue is that I cannot create an Android Addressables build.
This morning I did downgrade the unity version to 2022.3.52f1 and using the 1.22.3 version of the addressables. This is working, Iām able to build for Android after one week.