Flutter inspector不能正常加载

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Flutter inspector不能正常加载相关的知识,希望对你有一定的参考价值。

参考技术A 升级后出现inspector不能加载,
1.升级flutter sdk
运行 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 upgrade --force

最后升级成功 ,问题解决

2.降低devtools版本来解决
dart pub global activate devtools -v 2.8.0

以上是关于Flutter inspector不能正常加载的主要内容,如果未能解决你的问题,请参考以下文章

Flutter Inspector无法显示完整的Widget树

Flutter Inspector无法显示完整的Widget树

Flutter Inspector无法显示完整的Widget树

Flutter Inspector无法显示完整的Widget树

Flutter Driver(或 Silenium/Ghost Inspector)的高级功能

如何在 Visual Studio Code 中使用 Flutter 的 Widget Inspector?