発生したエラー
アプリビルド時に以下のエラーが発生しました。
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'. > Failed to create parent directory 'C:/Users/user' when creating directory 'プロジェクトのフォルダ/build/app/intermediates/flutter/debug/flutter_assets' * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights.
解決策
- 以前作成したプロジェクトを別のPCに移したことが原因っぽいです。
- 「flutter clean」をして再度パッケージとかを入れ直せば解決しました。