How To Clear Build Cache Using Flutter Android App

admin_img Posted By Bajarangi soft , Posted On 03-11-2020

Build cache is generated on application run time when a temporary file automatically generated in dart-tools folder, android folder and iOS folder. Clear command will delete the build tools and dart directories in flutter project so when we re-compile the project it will start from beginning. This command is mostly used when our project is showing debug error or running related error.

How To Clear Build Cache Using Flutter Android App

Clear Build Cache
Step 1: 
   Open your flutter project folder in Command Prompt or Terminal like i did in below screenshot. Type flutter clean command and press enter.
Step 2: 
  
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. This might take some time depending upon your system speed to clean the project.
Finally Here you go guys, now your flutter project is cleaned successfully and ready to use again with new code .

Related Post