Flutter: Error message Could not update files on device: Httpexception

Asked

Viewed 87 times

0

Hello, I am studying Flutter and recently I had a problem when I tried to run my project with Flutter run received the error message:

Could not update files on device: Httpexception: Connection closed before full header was Received, Uri = http://127.0.0.1:50365/h3iViYQmEC4=/

I tried with emulator and with my own phone but I get the same error.

The strange thing is that when I create a new App in Flutter it works, I can do all the modifications but if I stop and try to run again the error appears and the App does not run.

I’ve tried rebooting the devices. Flutter clean Flutter doctor [Show that everything is all right]

Until my old app that I had made to study happens the same thing, being that they were working.

Complete message with Flutter run:

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

  • I am using Android.
  • Message that appears on mobile is the default 'The app has stopped working, want to terminate?'
  • A tip, try using paths for your project that have no special characters or space, for example: D: Projects Projects flutter test (Wrong)... D: Projectsflutter test projects (right).

1 answer

1

[RESOLVED] - The problem was an external source that I was importing that apparently got corrupted, I realized that a message appears :

I removed every place I wore it and went back to normal.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.