Addressables can not instantiate. Dependency operation failed with System.Exception: Dependency Exception

Description:

Project builds, but I cant spawn any
adressable. Instead the error shows.


Error:

Dependency operation failed with System.Exception: Dependency Exception.

Full log: Initialize engine version: 2019.4.12f1 (225e826a680e)[Subsystems] Discoverin - Pastebin.com


what i tried:

  1. deleting library
  2. using addressables package version 1.8.5. or 1.12 (i cant use1.16 because of unity version)
  3. creating 2 projects. same unity version, package version,
    spawner script, objektstospawn,
    scene, addressable asset groups.
    one project works, the other
    doesnt.
  4. clear addressale build, create new addressable build with
    default buildscript,
  5. copy the whole project folder content (except library obj and logs folder) into another folder. this works.

Script:

using UnityEngine;
using UnityEngine.AddressableAssets;
public class AddressablesManager : MonoBehaviour
{
    [SerializeField] private AssetReferenceGameObject[] assetReferenceGameObjects;
    
    public void SpawnPrefab()
    {
        Addressables.InstantiateAsync(assetReferenceGameObjects[0]);
    }
    public void SpawnPrefab(int i)
    {
        Addressables.InstantiateAsync(assetReferenceGameObjects*);*

}
}
[171564-unbenannt.png|171564]*
*

for any developer coming across this:

  • solution is to change folder name:
  • works: addressables bughunting
    projekt/addressables
    bughunting2/Assets
  • doesnt work:
    xxxx1_brandschutz_evakuierung/xxxx2_fire_protection_evacuation_unity/Assets