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.
It appears this issue is still happening in Unity 6000.3 and Addressables 2.7.6. I’ve created a minimal sample repo and have a bug report up: IN-131919 – I have a new use case for Dedicated Server + Il2CPP now that Unity supports arm64 builds for the dedicated server but with Il2CPP only.