Skip to content

Failed to connect to the VM observatory service at: ws://127.0.0.1:57131/W1EcZRHLslc=/ws #61208

@PadreMontoya

Description

@PadreMontoya

At one point Flutter was working a few months ago. I took some time away and came back. Performed a flutter upgrade and now I'm running the versions below. The same problem was happening before I upgraded this evening.

Flutter 1.17.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 8af6b2f038 (9 days ago) • 2020-06-30 12:53:55 -0700
Engine • revision ee76268252
Tools • Dart 2.8.4

Steps to Reproduce

I created a brand new Flutter project from scratch (no changes), launched an emulator and tried to debug it. I'm getting this error:

Running "flutter pub get" in test_app1...                           0.5s
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...
√ Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...
Debug service listening on ws://127.0.0.1:57131/W1EcZRHLslc=/ws
Syncing files to device Android SDK built for x86...
Failed to connect to the VM observatory service at: ws://127.0.0.1:57131/W1EcZRHLslc=/ws
java.io.IOException: Failed to determine protocol version

I'm using Android Studio, so I'm not 100% sure of what commands are being run behind the scenes.

Logs

flutter doctor -v :

[√] Flutter (Channel stable, v1.17.5, on Microsoft Windows [Version 10.0.18362.900], locale en-US)
    • Flutter version 1.17.5 at C:\Users\antho\Documents\Flutter\flutter
    • Framework revision 8af6b2f038 (9 days ago), 2020-06-30 12:53:55 -0700
    • Engine revision ee76268252
    • Dart version 2.8.4


[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at C:\Users\antho\AppData\Local\Android\sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
    • All Android licenses accepted.

[√] Android Studio (version 3.6)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 47.1.1
    • Dart plugin version 192.8052
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)


[√] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    in triagePresently being triaged by the triage team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions