Hello. There are main project with addressables. It builds to catalog_1.json and another project which also contains groups of addressables. Main project after initialize addressables, load catalog_1.json and then try to load catalog_2.json from another project. This works fine in editor, but on android it fails. Also it fails in editor when “Use existing build” play mode script is selected. I am using addressables 1.16.15. Code is simple:
Addressables.InitializeAsync(); After that async method is complete, i load Addressables.LoadContentCatalogAsync(catalogUrl); And then error:
Exception encountered in operation Resource(catalog_2.json), status=Failed, result= : You must supply a valid bundle file path.
UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase1/<>c__DisplayClass55_0<System.Collections.Generic.IList1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle»:<add_CompletedTypeless>b__0 (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle1<System.Collections.Generic.IList1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle»)
DelegateList1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle1<System.Collections.Generic.IList1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle»>:Invoke (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle1<System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle»)
Hmm… May be it’s a bug? Problem disappears when “Compress content catalog” in main project is disabled. In ContentCatalogProvider it tries to load cached local catalog in bundle.
Hm, it’s possible this is a bug yeah. Have you filed a bug? It really helps us to get a project from you that reproduces the issue. If not please consider doing so