コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】Trying to add file "XXXX" to the list of output files in the build report, but the file does not appear to exist on disk right now.

概要

Trying to add file "XXXX" to the list of output files in the build report, but the file does not appear to exist on disk right now.
  • Unity で Android ビルドする時に上記のエラーが発生することがあった
  • アセットバンドルを StreamingAssets フォルダに含めて ROM をビルドした時に
    アセットバンドルのファイルパスを
    Assets/StreamingAssets/hoge.bundle ではなく
    Assets/StreamingAssetshoge.bundle のように
    区切り文字を付け忘れていたことが原因だった
  • その後、ファイルパスの区切り文字を修正してから ROM をビルドしても
    同様のエラーが発生する状態だった
  • Library フォルダを削除してからビルドし直したらビルドに成功するようになった