Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Addressables not working in builds

Discussion in 'Addressables' started by SviperSniper, May 12, 2020.

  1. SviperSniper

    SviperSniper

    Joined:
    Mar 1, 2017
    Posts:
    37
    Hey guys,
    I updated the package to 1.7.4 / 1.8.3 and suddenly the loading of addressable assets does not work anymore.
    It works fine in the editor with all modes, even with packed bundles.

    On Android and iOS they dont show up anymore and there are no exceptions or warnings.
    I tested it with an empty project and it worked. So it has to be a setting or something similiar I guess.

    Did anyone else encounter this issue?
    (Unity 2019.3.13f1)
     
    miracalious likes this.
  2. marwi

    marwi

    Joined:
    Aug 13, 2014
    Posts:
    138
    Hello, I just setup our project for ios (also on 19.3.13f1) with 1.8.3.
    I think I had to clean my build cache and then try build again to see build errors/asset errors. After fixing them (some assets referenced dx1 textures/ the builtin checker texture) it worked on ios
     
    SviperSniper likes this.
  3. SviperSniper

    SviperSniper

    Joined:
    Mar 1, 2017
    Posts:
    37
    Hey marwi,
    I first deleted the BuildCache directory...and nothing changed.
    But deleting the whole library folder fixed it.
    I do not know why I did not try this yet as its the usual fix for stuff like this xD

    Thanks a lot!
     
  4. SviperSniper

    SviperSniper

    Joined:
    Mar 1, 2017
    Posts:
    37
    I guess I found the source of the issue.
    After deleting the library folder the build worked. But the next build was broken again.

    Than I removed the CacheInitializationSettings from the Addressable Settings because there was a bug mentioned by a Unity guy.

    Now I get the following exception for each loaded asset:

    Code (CSharp):
    1. Exception encountered in operation Resource<Sprite>(FILE_NAME.png): Unable to load dependent bundle from location Assets/BUNDLE_PATH/FILE_NAME.png
    Any ideas? :(
     
  5. marwi

    marwi

    Joined:
    Aug 13, 2014
    Posts:
    138
    I assume you cleaned/built the addressables content?
     
  6. marwi

    marwi

    Joined:
    Aug 13, 2014
    Posts:
    138
    Hello not sure if the error is the same but I just got some issues on another pc where I had missing addresses in the groups (because I did indeed delete the assets): after deleting them in the group settings I could load again. For some reason the project /addressables run perfectly fine without those assets on my pc
     
  7. SviperSniper

    SviperSniper

    Joined:
    Mar 1, 2017
    Posts:
    37
    Yeah, I clean and build them with every new build.
    I even clean them manually from time to time because of broken Assets...

    I did not delete any Groups, Assets or anything. I just updated the package and deleted the lib folder.