How to clear Flutter's Build cache?

后端 未结 8 1793
耶瑟儿~
耶瑟儿~ 2020-12-09 07:50

There seems to be a problem with flutter\'s build.

I always need to perform RUN > Flutter Full Restart everytime I run the app to a

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-09 08:04

    I found a way to automate running the clean before you debug your code. (Warning, this runs everytime you hit the button, even for hot restart)

    1. First, find the Run > Edit Configurations Menu

    2. Click the External tool '+' icon under Before launch: External tool, Activate tool window.

    3. Run External Tool
    4. Configure it like so. Put the working directory as a directory in your project.

提交回复
热议问题