PS D:\flutterApp\myapp> flutter run
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 203.1s (!)
√ Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk... 7.7s
Error waiting for a debug connection: The log reader stopped unexpectedly
Error launching application on Redmi Note 4.
Earlier it was Error waiting for a debug connection: Bad state: No element
, I switched to master from stable and now it is throwing this error on run. App is getting installed but crashing by throwing this error.