2020.3.25f1
My project had 2 locales, en and zh-TW.
It was working find.
Then I added another locale via these steps
1.Project Settings → Localization → Locale Generator → add a new locale.
2.Asset Management → Localization Tables → Edit Table Collection → add the missing tables for the new locale
3.Fill the translation
Then building addressables groups always failed.
UnityEditor.GenericMenu:CatchMenu (object,string[ ],int) (at /Users/bokken/buildslave/unity/build/Editor/Mono/GUI/GenericMenu.cs:125)
The given key was not present in the dictionary.
UnityEditor.GenericMenu:CatchMenu (object,string[ ],int) (at /Users/bokken/buildslave/unity/build/Editor/Mono/GUI/GenericMenu.cs:125)
Addressable content build failure (duration : 0:00:00)
UnityEditor.GenericMenu:CatchMenu (object,string[ ],int) (at /Users/bokken/buildslave/unity/build/Editor/Mono/GUI/GenericMenu.cs:125)```
How to troubleshoot this?
I think this is a bug because the locales I added before was okay. Should I fire a bug report?
Yes. I did Window → Asset Management → Groups → Build → New Build → Default Build Script.
And I always got the error messages in the first post.
I couldn’t reproduce it with a new project.
So I am trimming my current project and will report the bug soon.
Sorry for bumping this topic, but Karl, do you perhaps have any idea if there is some kind of automated rebuilding of these addresables groups on the planning? Having to rebuild and do the extra manual step every time a new translation is added is kind of a pain…
Yes in newer Unity versions there’s a tick box in the addressable settings to do it. Sorry I’m not sure which version that is though and I’m not near to a machine to check.
Thank you for this, I had the exact same issue - and using the analyzers did NOT fix it. However, upgrading to Addressables 1.20 worked perfectly, and now I can build again.
Hi !
I had same problem in Unity 2022.3.4f and Addresable 1.21.18 on the Mac PC.
I tryed Analyzers and Addressable update. But error is same occured.
In my case, It solved throgh delete AddressableAssetsData folder and rebuild Addressables.
But this means all addressable register including register names labels is broken.
If you try it, be careful.
I hope this helps people who is in this truble.
Yes, I try Analyze Rules in the addressable analyze window. But localization data was remain.
Oh, my case is a little dirrent from this threads case perhaps.
In my case Localization had uninstalled a little while ago.
*Because Locale was broken every git pull. I reported it, But I could’t continue develop this situation and could’t wait fix or response it. And then report was closed.
Now ,Back to the main topic, Addressable group was remains in Group window until today. It was gray out, could’t delete.
Then the first time from localization matter, I tryed build the game on Mac PC, caught the error.
So, I tryed Analyze in the situation Localization already unintalled.
I tryed to checkout old branch. But Addressable Group is fixed already. In spite of role back to clearly the matter was occured branch.
I reported this case in yesterday when problem is occured (but Analyze Rules is not still run).
case No is IN-62057.
I hope this report helps you.@karl_jones