BUG: A meta data file (.meta) exists but its asset 'Assets/StreamingAssets/aa' can't be found

Building a Windows Standalone Player with Unity 2019.3.7f1 and Addressables 1.7.5, causes the Addressables System to output the following warning always:

The entire related log is:

Copying Addressables data from Library/com.unity.addressables/StreamingAssetsCopy/aa/Windows to C:/Users/crash/Documents/TestProject/Assets/StreamingAssets/aa/Windows.  These copies will be deleted at the end of the build.
UnityEngine.Debug:Log(Object)
AddressablesPlayerBuildProcessor:OnPreprocessBuild(BuildReport) (at Library/PackageCache/com.unity.addressables@1.7.5/Editor/Build/AddressablesPlayerBuildProcessor.cs:37)
UnityEditor.BuildPipeline:BuildPlayer(BuildPlayerOptions)


Deleting Addressables data from C:/Users/crash/Documents/TestProject/Assets/StreamingAssets\aa.
UnityEngine.Debug:Log(Object)
AddressablesPlayerBuildProcessor:CleanTemporaryPlayerBuildData() (at Library/PackageCache/com.unity.addressables@1.7.5/Editor/Build/AddressablesPlayerBuildProcessor.cs:26)
AddressablesPlayerBuildProcessor:OnPostprocessBuild(BuildReport) (at Library/PackageCache/com.unity.addressables@1.7.5/Editor/Build/AddressablesPlayerBuildProcessor.cs:17)
UnityEditor.BuildPipeline:BuildPlayer(BuildPlayerOptions)


A meta data file (.meta) exists but its asset 'Assets/StreamingAssets/aa' can't be found. When moving or deleting files outside of Unity, please ensure that the corresponding .meta file is moved or deleted along with it.

Looking at the AddressablesPlayerBuildProcessor.CleanTemporaryPlayerBuildData code shows this line:

Directory.Delete(addressablesStreamingAssets, true);

ā€¦ which deletes the directory, but not the .meta file of that directory.

Reproduce

  • Build Windows Standalone Player
  • Unfocus / Focus Unity editor
  1. Please fix that you also delete the .meta afterwards to avoid getting the warning with every build.

  2. Is there a way to turn off the ā€œCopying Addressables dataā€ message? I understand thatā€™s important to output warnings and errors, but this log isnā€™t particular useful to me.

PS: No idea why Unity generates .meta files for files inside the StreamingAssets directory, this could be another bug. But itā€™s been like this always.

Iā€™ll flag this for the team to check out! If you havenā€™t yet, please also file a bug report with us. That process is detailed here: Unity QA: Building quality with passion

1 Like

I updated Addressables to 1.10.0, the issue described above still persists.

Iā€™m being annoyed by this issue as well, but i donā€™t need to build anything. StreamingAssets was auto added to my directory (not sure why/when) and Addressables has been complains about it every time refresh my code:

Iā€™ve deleted the folder and the errors have stopped. And the folder doesnā€™t seem to come back.

Edit: Nevermind, the folder and error messages came back on build

Thatā€™s because they copy aa to streaming assets in the pre-build process, then delete it in the post-build process. Unity itself can generate the meta file within that process that Addressables is not accounting for.

Bug still there in Unity 2020.2a19 + Adressables 1.13.1 :frowning:

I have no idea what StreamingAssets/aa is so itā€™s quite annoying to have it created in my project files and also getting the warning in my console all the time. Any solution to this?

Fix it already!!!

Hey all, StreamingAssets/aa is where we copy the AssetBundles from the ScriptableBuildPipeline build into StreamingAssets for local bundles when doing a player build. Since thereā€™s no need to constantly have that in your Assets folder we clean it up after the player build.

Iā€™ll add a ticket for us to be sure to cleanup the meta file but in the meantime if you want to add this snippet to AddressablesPlayerBuildProcessor.CleanTemporaryPlayerBuildData it should clean that up for you.

string metaPath = "Assets/StreamingAssets/aa.meta";
if(File.Exists(metaPath))
  File.Delete(metaPath);
2 Likes

I can no longer reproduce the issue with Addressable 1.16.15. I assume it has been fixed. Thank you!

1 Like

Hi.

I am facing a similar problem (or maybe not).

error: Callback provided streaming assets file conflicts with file already present in project. Project file ā€˜StreamingAssets/aa/catalog.jsonā€™. Callback provided file ā€˜Library/com.unity.addressables/aa/WebGL/catalog.jsonā€™.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

i solved it. it happens when using addressable updated from 2020ver to 2021ver. you need to delete the filename: StreamingAssets in Asset folder.