Addressable is not loading in build

Hey everyone,

I have a simple prototype with UI Image and a texture. I have the image01 in Default Local Group as shown:
8513495--1134650--upload_2022-10-14_15-26-4.png

I do Build>Update A Previous build and then build the player itself. So that means it gets built with this yellow image01.jpg (the small preview).

When I then replace image01.jpg with a different file (same name) and click Build>Update a previous build and then click Build & Release, I was hoping it would change on the (already built) app, but it does not. It seems to work in Editor (with Play Mode Script being Use Existing Build), but not in the player itself.

I have this small snippet, but I’m not really sure if that helps in any way.

    public AssetReference e;
    public Image i;
    void Start()
    {
        Addressables.LoadAssetAsync<Sprite>(e).Completed += (a) =>
        {
            i.sprite = a.Result;
        };
    }

This is my profile in Addressable Groups settings.

…and this is my AddressableAssetSettings.

If you’d need anything more, I can provide it.

I really don’t know what’s wrong and would be happy for any help :).

Hi @sebi210 what Addressables version is being used? Also if you haven’t seen it already, we have an updated tutorial for the content update workflow here: Learn game development w/ Unity | Courses & tutorials in game design, VR, AR, & Real-time 3D | Unity Learn

Hello @pillakirsten sorry for the delayed response.

We are using 1.20.5. I have seen that tutorial, but it still does not work.

I might have debugged a tad more and found out, that it doesn’t work in the build (and not even in editor when using Use Existing Build option)

I have errors now! UnityEngine.AddressableAssets.InvalidKeyException: Exception of type ‘UnityEngine.AddressableAssets.InvalidKeyException’ was thrown. No Location found for Key=xxxx

The problem is, that I have this exact key built and even released on the CCD.

I’ve found this topic, which had a similar problem, but I don’t really know what to do with the answer. addressables throw InvalidKeyException on android platform