'An unexpected packet was received before the handshake. - Android Studio
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.
Solution 1:[1]
Solution 2:[2]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Mohsen_AB |
Solution 2 | Jas |