Flutter DevTools has recently been updated to version 2.20.1 and since then my request and response in the network tabs are empty. I can still see the headers of the request.
I have tried:
Re opening VS Code
Flutter clean
Deleting and reinstalling the Flutter and Dart package in VS Code
Switching to DevTools in my web browser
Any ideas of what the problem could be? Thank you.
It's known issue with Flutter 3.7.0 – 3.7.1 – 3.7.2, DevTools 2.20.1
You can use workaround to run DevTools as Desktop app
Related
I can set breakpoints, but when I run in Debug mode the breakpoint's icon change with this:
I think that the problem is the new version of Flutter plugin in Android Studio, but I'm not sure. How to fix this?
What I've tried:
flutter clean
android studio cache clean and restart
Upgrade to the latest version of the flutter plugin 65.1.3 solved my problem.
https://plugins.jetbrains.com/plugin/9212-flutter/versions
need to roll back the version of the flutter plugin to 64.1.2.
https://plugins.jetbrains.com/plugin/9212-flutter/versions
Confirmed: plug-in was one thing.
The other problem is that IntelliJ (same for Android Studio) distinguish between:
import '../../viewmodel/**m**essages
import '../../viewmodel/**M**essages
Compiling, running, Dart analysis ... everything's fine. However, breakpoints don't work!
To be more precise: some breakpoints don't work, only in some files!
Tip: If a breakpoint does not work, remove all imports in the file. Click the bulb to get suggestions - and you will see the duplicate imports.
See wrong imports
Btw.: I am on Windows. And the file system does not distinguish between upper and lower case filenames.
Faced to this issue today as well: looks like for me the solution was to update Flutter / Dart SDK and their Plugins for Android Studio.
Some users report the problem is linked to the Chrom Version >=100 due to API change, but on my side it was not working with Edge as well.
After update problem has gone
There is indeed also an issue with Chrome Version >=100. Running flutter upgrade (to flutter 2.10.5) fixed this for me as described here
I believe my Flutter SDK version is being erroneously reported and do not know where the conflict is.
When running flutter doctor it reports Flutter 2.2.3 • channel stable. However, the bottom toolbar in VSCode displays Flutter: 2.0.4.
Is there a reason VSCode and terminal would report the Flutter version differently? And how can I ensure I am running the correct SDK version?
Look into "dart.flutterSdkPath" setting in vscode and change if needed. The problem could be with you having multiple versions of Flutter on the disk and auto-find fails to find the correct one (last version), manually override.
In my case my path( environment variables) of SDK was set wrong check yours first
and if still not worked try running commands
Flutter clean
Flutter upgrade
I upgrade flutter to the latest version of Flutter stable channel which is also support web but not in my pc it doesn't show web and chrome see the image below.
and please help me.....
Make sure that you performed the following steps:
Enable web config: flutter config --enable-web
Install latest stable Google Chrome (not Canary, not Chrome-like browsers)
I'm getting following error while trying to connect devtool to debug app session.
getDartDevelopmentServiceVersion: (-32601) Method not found
I had the same problem a couple of days ago. I tried these methods and had no luck:
upgrading flutter and devtools (still on stable, just went to 1.22.6)
doing flutter clean
clearing the cache
reindexing in Android Studio
Finally I noticed there was a new release of Android Studio and upgraded it. This seems to have resolved the issue for me.
this may fix your problem temporarily, it seems there is some bugs with new feature
SWITCH channel to beta, if issue is fixed during the next week highly recommend you switch to stable.
flutter channel beta
flutter upgrade
or launch manually
with flutter pub global run devtools
and use a link to connect
My flutter inspector in android studio is stuck on "Installing Dev tools"
it worked before, Today when I opened it, it did not work
The fact is that the IDE seems to recently have started using embedding devtools in the inspector tab. I have my Flutter version up to date and my Android Studio's version is 4.1. Until the problem gets solved I have three possible solutions:
One is invalidating caches by going to File > Invalidate Caches > Restart > Invalidate and Restart.
Another one would be (for Windows) running on the Android Studio console:
flutter.bat pub global activate devtools
flutter.bat pub global run devtools
And the third one (the one that worked for me): go to File > Settings > Languages & Frameworks > Flutter > Experiments … and there you should uncheck “Enable embedding DevTools in the Flutter Inspector tool window”. That should allow you to use devtools locally instead of the embedded ones.
And by the way, in order to use Devtools you should first make sure your application is running ;)
As I said before, they seem to be already fixing the problem. They made other changes to DevTools management that should solve the issue. For more information you should go to: https://github.com/flutter/flutter-intellij/issues/5032
By running File > Invalid Caches / Restart..., the problem was fixed
There's a Github issue for this https://github.com/flutter/flutter-intellij/issues/5032
I breaked it
flutter doctor resuming installation process
what I did
Closed the Android Studio and Opened it again, Run the project, and waited for 2 mins, this time it has shown.