How to fix HttpException: Connection closed before full header was received

后端 未结 11 2639
不知归路
不知归路 2020-12-03 02:22

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 prot

11条回答
  •  有刺的猬
    2020-12-03 02:52

    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.

提交回复
热议问题