Grand
Grand

Reputation: 205

Flutter Inspector "Disconnected" when trying to open it in Android Studio, VS Code, and the web browser

enter image description here

Upvotes: 0

Views: 1792

Answers (3)

Musfiq Shanta
Musfiq Shanta

Reputation: 1625

update your Futter use this code flutter upgrade

Upvotes: 1

Danny Tuppeny
Danny Tuppeny

Reputation: 42413

This was a bug in a recent release of DevTools that didn't gracefully handle versions of Flutter that were missing a new API:

https://github.com/flutter/devtools/issues/2648

This issue was fixed in version 0.9.7+2 of DevTools, which VS Code should automatically update to. If it doesn't, you can manually update with:

pub global activate devtools

Note: do not include a flutter prefix.

If pub isn't in your PATH you may need to run it with a full path like:

(flutter SDK)\bin\cache\dart-sdk\bin\pub global activate devtools

Upvotes: 1

Grand
Grand

Reputation: 205

There is a recent Github issue about this. Other people are experiencing it too. https://github.com/flutter/flutter/issues/75055

Upvotes: 0

Related Questions