Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter DevTools open a blank screen

I'm running Android Studio 4.1.1 with Flutter 2 plugin, but I couldn't get DevTools to open by pressing its icon in the run window or by choosing Open DevTools from the more actions popup in flutter inspector, the result is always a blank web page. I have a running mobile app on an iOS simulator, but I don't know if that makes a difference.

Flutter version details:

Flutter 2.0.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision c5a4b4029c (11 days ago) • 2021-03-04 09:47:48 -0800
Engine • revision 40441def69
Tools • Dart 2.12.0

what's going wrong with DevTools ?

like image 293
JAHelia Avatar asked Mar 21 '26 22:03

JAHelia


2 Answers

In my case, it was because I was on Mac with the window opening in Safari, because it is usually the default browser on Mac. So I copied the URL to Chrome and that worked.

like image 168
Bruce Cichowlas Avatar answered Mar 24 '26 23:03

Bruce Cichowlas


In my case, using Windows 10, connecting to http://127.0.0.1:9100 in Chrome displayed a blank page. Using http://localhost:9100 worked.

Clue was provided in https://github.com/flutter/flutter/issues/35563#issuecomment-512493580.

like image 36
Michael Partridge Avatar answered Mar 25 '26 01:03

Michael Partridge



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!