When building a Flutter app in my linux machine, I encountered this error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:copyFlutterAssetsDebug'.
> Could not copy file '/FwzFiles/GitHub/nilai_sekolah/build/app/intermediates/flutter/debug/android-arm64/flutter_assets' to '/FwzFiles/GitHub/nilai_sekolah/build/app/intermediates/merged_assets/debug/mergeDebugAssets/out/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.
I've had to setup my Android device (Google Pixel 2) using this tutorial (which requires me to change udev permissions), so is this related to the error at all? I'm able to pull
and push
files to my device.
How do I fix this error?