System.Exception: Unable to load dependent bundle from location

Error:

System.Exception: Unable to load dependent bundle from location Assets/GameMain/Prefabs/Role/Hero/Knight.prefab
UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1/<>c__DisplayClass57_0<System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle>>:<add_CompletedTypeless>b__0 (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle>>)
DelegateList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle>>>:Invoke (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle>>) (at Library/PackageCache/com.unity.addressables@1.19.19/Runtime/ResourceManager/Util/DelegateList.cs:69)
UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1/<>c__DisplayClass57_0<UnityEngine.ResourceManagement.ResourceProviders.IAssetBundleResource>:<add_CompletedTypeless>b__0 (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.ResourceManagement.ResourceProviders.IAssetBundleResource>)
DelegateList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.ResourceManagement.ResourceProviders.IAssetBundleResource>>:Invoke (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.ResourceManagement.ResourceProviders.IAssetBundleResource>) (at Library/PackageCache/com.unity.addressables@1.19.19/Runtime/ResourceManager/Util/DelegateList.cs:69)

My code:

            var path = "Assets/GameMain/Prefabs/Role/Hero/Dragoon.prefab";
            var handle = Addressables.LoadAssetAsync<GameObject>(path);
            handle.WaitForCompletion();
            var obj = GameObject.Instantiate(handle.Result);

Use Asset Database and Simulate Groups Mode it works .:ballot_box_with_check:
Use Existing Build(Win64) :ballot_box_with_check:
Use Existing Build(MacOS) :ballot_box_with_check:
Use Existing Build(Android) :heavy_multiplication_x:

Hi @hualinZhang are there more errors that are logged? Also do you still get the same error when WaitForCompletion is not used (in other words the asset is loaded asynchronously)?

Another thing that could be worth trying is upgrading to the latest package version (Addressables 1.20.3)

I have the same issue. I am using Unity 2019.22.4f1 and Addressables 1.16.19. Very few players encountered this error. I couldn’t reproduce it on my end, unfortunately.

I have the same issue. I am using Unity 2021.3.8f1 and Addressables 1.19.19. I am at a loss for finding a solution

Hi all we’ve received a bug with this error. It will be fixed in the next release version (1.21).

I am having the same issue and have submitted a bug report since long. Report ID is IN-17438

Does we have a solution for this yet?

Edit: Nvm… just read that it fixed in 1.21, was using 1.19 (which recommended by Unity 2021.3.36f)