flutter摸着石头过海之热重载失效
打算用flutter开发一个App,突然有一天发现热部署失效了(之前是好的)。
之前也遇到过一次是代码的问题 ----- 只有build的中的代码才热重载。
本次各种检查实验后均无效后,决定更新一下Flutter试试,执行flutter upgrade后提示
Your flutter checkout has local changes that would be erased by upgrading. If you want to keep these changes, it is recommended that you stash them via “git stash” or else commit the changes to a local branch. If it is okay to remove local changes, then re-run this command with --force.
根据提示 强制更新后,好了!!,也不知道本地改啥了,,具体原因不在深追了,反正好了!!
Flutter热重载失效解决
在使用Flutter开发过程中,遇到热重载失效问题。通过排查发现仅build中的代码支持热重载,尝试多种方法无效后,决定更新Flutter。在解决本地变更冲突后,强制更新Flutter,热重载功能恢复正常。
1291

被折叠的 条评论
为什么被折叠?



