An unexpected packet was received before the handshake. - Android Studio
Asked Answered
H

2

10

When I run the Flutter project on Android Studio, before running the application on the emulator, the event log displays "An unexpected packet was received before the handshake" for six to seven times. After that, the application runs properly on the emulator.
But when I run the same project on VS Code, it works fine.

Note: I also make Java applications on Android Studio and it never displayed this error.

Helotry answered 20/3, 2022 at 8:36 Comment(0)
T
0

go to emulator tab. click check for updates.

[![enter image description here][1]][1]

enter image description here

Tamqrah answered 16/4, 2022 at 9:56 Comment(1)
It didn't work for me.Helotry
G
0

If you're using Kotlin, make sure it's updated. It must be 1.5.31 or greater according to docs.flutter.dev. In android studio, go to Tools > Kotlin > Configure Kotlin Plugin Updates.

Galliard answered 28/4, 2022 at 9:23 Comment(1)
I've the latest version (1.6.21).Helotry

© 2022 - 2024 — McMap. All rights reserved.