Delete ~/. pub-cache/hosted and/or ~/. pub-cache/git (for Git dependencies) . This requires running flutter packages to get in all active projects on your machine afterward.28 Mar 2019
Read moreWhere is flutter pub cache?
By default, this directory is located under . pub-cache in your home directory (on macOS and Linux), or in %LOCALAPPDATA%\Pub\Cache (on Windows) .
Read moreHow do I clean my android flutter?
To clear Flutter’s Build cache Open your flutter project folder in Command Prompt or Terminal. Then type flutter clean command and press enter. After executing flutter clean command we would see that it will delete the dart-tools folder, android folder and iOS folder in our application with debug file.
Read more