How to clear Flutter's Build cache?

后端 未结 8 1795
耶瑟儿~
耶瑟儿~ 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:25

    You can run flutter clean.

    But that's most likely a problem with your IDE or similar, as flutter run creates a brand new apk. And hot reload push only modifications.

    Try running your app using the command line flutter run and then press r or R for respectively hot-reload and full-reload.

    0 讨论(0)
  • 2020-12-09 08:25

    There are basically 3 alternatives to cleaning everything that you could try:

    • flutter clean will delete the /build folder.
    • Manually delete the /build folder, which is essentially the same as flutter clean.
    • Or, as @Rémi Roudsselet pointed out: restart your IDE, as it might be caching some older error logs and locking everything up.
    0 讨论(0)
提交回复
热议问题