In this post, we are going to show you different ways to clear flutter build cache. Your project has a very larger project size with build-cache, therefore it is better to clear cache while transferring, or you can also clear cache if the latest configuration is not taking place.
Open terminal at the location of your project root folder, and hit the command below:
The output on terminal:
PS C:\flutter_apps\testapp> flutter clean Deleting build... 774ms Deleting .dart_tool... 14ms Deleting .packages... 1ms Deleting Generated.xcconfig... 20ms Deleting flutter_export_environment.sh... 11ms Deleting ephemeral... 1ms Deleting ephemeral... 13ms Deleting ephemeral... 1ms
This command will delete few temporary folders, specially "build/", ".dart_tools/" and ".packages/".
Go to Tools > Flutter > Flutter Clean to clear the build cache of the Flutter project.
In this way, you can delete the flutter project build cache with these two easy methods.