Since I upgraded the Flutter version to 3.29, I have the following error when launching the application:
Error connecting to the service protocol: failed to connect to http://127.0.0.1:55395/YqaWniI6U-w=/
HttpException: Connection closed before full header was received, uri = http://127.0.0.1:55395/YqaWniI6U-w=/ws
The application does not even reach the "main()" function with the debugger.
I am using a physical device with Android 7 (API 24).
Also, if I reinstall the Flutter SDK 3.27, the application works normally again.
Thanks in advance for your answers.
I finally found the problem.
Since Flutter 3.29 (started since 3.27), the default renderer is Impeller instead of Skia.
When building the application, the logs show the following line:
Using the Impeller rendering backend (OpenGLES)
Impeller crashes on my device (I don't know the exact reasons), but it must be disabled:
In android\app\src\main\AndroidManifest.xml
, add the following block in <application>
:
<meta-data
android:name="io.flutter.embedding.android.EnableImpeller"
android:value="false" />