I have recently upgraded my flutter version in my app. But when I want to debug the application, it shows me the following error.
Error connecting to the service protocol: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:50795/ws
Is there anyone facing the same issue after upgrading the flutter version? If is there any workaround, please share.
Right now this issue is opened on github
https://github.com/flutter/flutter/issues/32587
Temporarily you can solve this issue by switching to physical device instead of emulator
How to test android apps in a real device with Android Studio?
Decision found on github (link upward)
I've got a temporary work around, which I can use for now. The exception above is thrown when I run the emulator as a Pixel 3 Android 9.+ Target (Q API). I made up a second emulated device, a Pixel 2 Android 9.0 Target (28 API), and this target works fine.
I'm also noticing that the Pixel 2 target takes up 8.5GB on Disk, while the Pixel 3 target only takes up 1.4GB. It makes me wonder if the Pixel 3 target is missing some important things.