flutter given error while running: Error waiting for a debug connection: Bad state: No element

Issue

I’m launching the app in a real device.
Anyone knows why this is happening?

Launching lib/main.dart on GT I9063T in debug mode...
✓ Built build/app/outputs/apk/debug/app-debug.apk.
Error waiting for a debug connection: Bad state: No element
Error launching application on GT I9063T.
Exited (sigterm)

Even the hello-world app is showing this error.

Solution

I ended reinstalling flutter sdk.

Ubuntu 16.04
VSCODE

Answered By – Rafael Áquila

Answer Checked By – Robin (FlutterFixes Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *