Skip to content

flutter run could not connect to VM Service #171770

@eminyazan

Description

@eminyazan

Steps to reproduce

1- Create any Flutter application (new or existing)
2- Run flutter run from command line
3- OR press F5 in VS Code with the above launch configuration
4- Observe that build completes but VM Service connection fails

Expected results

Launch and debug windows or web applications succssfully in vscode or android studio

Actual results

In my work computer (uses proxy but flutter releated links, urls etc are accessible) Flutter applications build successfully but fail to connect to VM Service with WebSocket HTTP 502 errors. The issue occurs in both VS Code, Android Studio and command line execution, affecting Windows and Web targets. From cmd or powershell 'flutter run --debug -v' command builts app (for windows, web directly crashes output log here) but it stucks at blank screen and throws errors like

Exception attempting to connect to the VM Service: WebSocketException: Connection to 'http://127.0.0.1:59787/EkA5sCWfUR4=/ws#' was not upgraded to websocket, HTTP status code: 502
[   +1 ms] This was attempt #1. Will retry in 0:00:00.100000.
[ +191 ms] Exception attempting to connect to the VM Service: WebSocketException: Connection to 'http://127.0.0.1:59787/EkA5sCWfUR4=/ws#' was not upgraded to websocket, HTTP status code: 502
[   +5 ms] This was attempt #2. Will retry in 0:00:00.200000.
[ +236 ms] Exception attempting to connect to the VM Service: WebSocketException: Connection to 'http://127.0.0.1:59787/EkA5sCWfUR4=/ws#' was not upgraded to websocket, HTTP status code: 502
[   +1 ms] This was attempt #3. Will retry in 0:00:00.400000...........

In VS Code launch it is not even builds app it just stucks when building always gives app is building warning and output is

Launching lib\main.dart on Windows in debug mode...
√ Built build\windows\x64\runner\Debug\testapp.exe
Connecting to the VM Service is taking longer than expected...
Still attempting to connect to the VM Service...
If you do NOT see the Flutter application running, it might have crashed. The device logs (e.g. from adb or XCode) might have more details.
If you do see the Flutter application running on the device, try re-running with --host-vmservice-port to use a specific port known to be available.
Exception attempting to connect to the VM Service: WebSocketException: Connection to 'http://127.0.0.1:63607/mJe2SuKSlwM=/ws#' was not upgraded to websocket, HTTP status code: 502
This was attempt #50. Will retry in 0:00:01.600000.

Attempted Solutions

  • Manually tried to attaching to debugger to vscode
  • Connected to manually flutter devtool but it couldnt able to debugging
  • Windows Firewall is disabled
  • Tried with completely new Flutter project
  • Issue occurs on both Windows desktop and Web targets
  • Tried different ports via --host-vmservice-port=50300
  • Flutter Clean and Pub Get executed
  • Flutter and Dart reinstalled (VSCode)
  • Run as Administrator

VS Code launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "myapp",
            "type": "dart",
            "request": "launch",
            "program": "lib/main.dart",
            "flutterMode": "debug",
            "args": [
                "--host-vmservice-port=50300"
            ]
        },
        {
            "name": "myapp (Release)",
            "type": "dart",
            "request": "launch",
            "program": "lib/main.dart",
            "flutterMode": "release"
        }
    ]
}

VS Code settings.json

{
    "workbench.iconTheme": "vscode-icons",
    "workbench.colorTheme": "Tokyo Night",
    "files.autoSave": "afterDelay",
    "editor.defaultFormatter": "Dart-Code.flutter",
    "editor.formatOnSave": true,
    "explorer.confirmDelete": false,
    "dart.flutterSdkPath": "C:\\Users\\myuser\\dev\\flutter\\bin",
    "[dart]": {
        "editor.formatOnSave": true,
        "editor.formatOnType": true,
        "editor.rulers": [
            150
        ],
        "editor.selectionHighlight": true,
        "editor.tabCompletion": "onlySnippets",
        "editor.wordBasedSuggestions": "off"
    },
    "[json]": {
        "editor.defaultFormatter": "vscode.json-language-features"
    },
    "editor.fontSize": 15,
    "dart.lineLength": 150,
    "editor.rulers": [
        150
    ],
    "[jsonc]": {
        "editor.defaultFormatter": "vscode.json-language-features"
    },
    "terminal.integrated.confirmOnExit": "hasChildProcesses",
    "terminal.integrated.defaultProfile.windows": "Windows PowerShell",
}

Code sample

Default main.dart file
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  
  //http://127.0.0.1:62365/SWJYgAyzVKw=/ws#

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // TRY THIS: Try running your application with "flutter run". You'll see
        // the application has a purple toolbar. Then, without quitting the app,
        // try changing the seedColor in the colorScheme below to Colors.green
        // and then invoke "hot reload" (save your changes or press the "hot
        // reload" button in a Flutter-supported IDE, or press "r" if you used
        // the command line to start the app).
        //
        // Notice that the counter didn't reset back to zero; the application
        // state is not lost during the reload. To reset the state, use hot
        // restart instead.
        //
        // This works for code too, not just values: Most code changes can be
        // tested with just a hot reload.
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  // This widget is the home page of your application. It is stateful, meaning
  // that it has a State object (defined below) that contains fields that affect
  // how it looks.

  // This class is the configuration for the state. It holds the values (in this
  // case the title) provided by the parent (in this case the App widget) and
  // used by the build method of the State. Fields in a Widget subclass are
  // always marked "final".

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      // This call to setState tells the Flutter framework that something has
      // changed in this State, which causes it to rerun the build method below
      // so that the display can reflect the updated values. If we changed
      // _counter without calling setState(), then the build method would not be
      // called again, and so nothing would appear to happen.
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    // This method is rerun every time setState is called, for instance as done
    // by the _incrementCounter method above.
    //
    // The Flutter framework has been optimized to make rerunning build methods
    // fast, so that you can just rebuild anything that needs updating rather
    // than having to individually change instances of widgets.
    return Scaffold(
      appBar: AppBar(
        // TRY THIS: Try changing the color here to a specific color (to
        // Colors.amber, perhaps?) and trigger a hot reload to see the AppBar
        // change color while the other colors stay the same.
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        title: Text(widget.title),
      ),
      body: Center(
        // Center is a layout widget. It takes a single child and positions it
        // in the middle of the parent.
        child: Column(
          // Column is also a layout widget. It takes a list of children and
          // arranges them vertically. By default, it sizes itself to fit its
          // children horizontally, and tries to be as tall as its parent.
          //
          // Column has various properties to control how it sizes itself and
          // how it positions its children. Here we use mainAxisAlignment to
          // center the children vertically; the main axis here is the vertical
          // axis because Columns are vertical (the cross axis would be
          // horizontal).
          //
          // TRY THIS: Invoke "debug painting" (choose the "Toggle Debug Paint"
          // action in the IDE, or press "p" in the console), to see the
          // wireframe for each widget.
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text('You have pushed the button this many times:'),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headlineMedium,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration

Logs

Logs
[  +25 ms] Launching lib\main.dart on Windows in debug mode...
[   +6 ms] C:\Users\t1.emin.yazan\dev\flutter\bin\cache\dart-sdk\bin\dartaotruntime.exe C:\Users\t1.emin.yazan\dev\flutter\bin\cache\dart-sdk\bin\snapshots\frontend_server_aot.dart.snapshot --sdk-root
C:\Users\t1.emin.yazan\dev\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --experimental-emit-debug-metadata -DFLUTTER_VERSION=3.32.5 -DFLUTTER_CHANNEL=stable  
-DFLUTTER_GIT_URL=https://github.com/flutter/flutter.git -DFLUTTER_FRAMEWORK_REVISION=fcf2c11572 -DFLUTTER_ENGINE_REVISION=dd93de6fb1 -DFLUTTER_DART_VERSION=3.8.1 --output-dill
C:\Users\T1EMIN~1.YAZ\AppData\Local\Temp\flutter_tools.aa83502\flutter_tool.aa34045c\app.dill --packages C:\Users\t1.emin.yazan\StudioProjects\testapp\.dart_tool\package_config.json -Ddart.vm.profile=false  
-Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build\5ed1ec56e46357ec5ad2faed02821e03.cache.dill.track.dill --verbosity=error   
--enable-experiment=alternative-invalidation-strategy
[  +50 ms] executing: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -products * -utf8 -latest -version 16 -requires Microsoft.VisualStudio.Workload.NativeDesktop
Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.CMake.Project
[ +315 ms] Exit code 0 from: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -products * -utf8 -latest -version 16 -requires Microsoft.VisualStudio.Workload.NativeDesktop
Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.CMake.Project
[   +2 ms] [
             {
               "instanceId": "7c1f2229",
               "installDate": "2025-06-19T13:31:39Z",
               "installationName": "VisualStudio/17.14.6+36212.18.-june.2025-",
               "installationPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise",
               "installationVersion": "17.14.36212.18",
               "productId": "Microsoft.VisualStudio.Product.Enterprise",
               "productPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\IDE\\devenv.exe",
               "state": 4294967295,
               "isComplete": true,
               "isLaunchable": true,
               "isPrerelease": false,
               "isRebootRequired": false,
               "displayName": "Visual Studio Enterprise 2022",
               "description": "Scalable, end-to-end solution for teams of any size",
               "channelId": "VisualStudio.17.Release",
               "channelUri": "https://aka.ms/vs/17/release/channel",
               "enginePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\resources\\app\\ServiceHub\\Services\\Microsoft.VisualStudio.Setup.Service",
               "installedChannelId": "VisualStudio.17.Release",
               "installedChannelUri": "https://aka.ms/vs/17/release/channel",
               "releaseNotes": "https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes-v17.14#17.14.6",
               "resolvedInstallationPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise",
               "thirdPartyNotices": "https://go.microsoft.com/fwlink/?LinkId=661288",
               "updateDate": "2025-06-19T13:31:39.762476Z",
               "catalog": {
                 "buildBranch": "d17.14",
                 "buildVersion": "17.14.36212.18",
                 "id": "VisualStudio/17.14.6+36212.18.-june.2025-",
                 "localBuild": "build-lab",
                 "manifestName": "VisualStudio",
                 "manifestType": "installer",
                 "productDisplayVersion": "17.14.6 (June 2025)",
                 "productLine": "Dev17",
                 "productLineVersion": "2022",
                 "productMilestone": "RTW",
                 "productMilestoneIsPreRelease": "False",
                 "productName": "Visual Studio",
                 "productPatchVersion": "6",
                 "productPreReleaseMilestoneSuffix": "1.0",
                 "productReleaseNameSuffix": "(June 2025)",
                 "productSemanticVersion": "17.14.6+36212.18.-june.2025-",
                 "requiredEngineVersion": "3.14.2075.50697"
               },
               "properties": {
                 "campaignId": "2030:20a670ec33c9432aa02a96a1e31ac377",
                 "channelManifestId": "VisualStudio.17.Release/17.14.6+36212.18.-june.2025-",
                 "includeRecommended": "1",
                 "nickname": "",
                 "setupEngineFilePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\setup.exe"
               }
             }
           ]
[   +8 ms] Building Windows application...
[  +74 ms] <- compile package:testapp/main.dart
[   +2 ms] executing: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -S C:\Users\t1.emin.yazan\StudioProjects\testapp\windows -B
C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64 -G Visual Studio 17 2022 -A x64 -DFLUTTER_TARGET_PLATFORM=windows-x64
[ +692 ms] -- Configuring done (0.2s)
[ +719 ms] -- Generating done (0.7s)
[  +42 ms] -- Build files have been written to: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64
[  +73 ms] executing: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe --build
C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64 --config Debug --target INSTALL --verbose
[ +353 ms] Change Dir: 'C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64'
[   +1 ms] Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/MSBuild/Current/Bin/amd64/MSBuild.exe" INSTALL.vcxproj /p:Configuration=Debug /p:Platform=x64
/p:VisualStudioVersion=17.0 /v:n
[ +614 ms] MSBuild version 17.14.10+8b8e13593 for .NET Framework
[ +157 ms] Build started 7/8/2025 3:28:26 PM.
[ +966 ms] Project "C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\INSTALL.vcxproj" on node 1 (default targets).
[   +4 ms] Project "C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\INSTALL.vcxproj" (1) is building "C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\ZERO_CHECK.vcxproj" (2)
on node 1 (default targets).
[        ] PrepareForBuild:
[        ]   Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details.
[   +8 ms] InitializeBuildStatus:
[   +1 ms]   Creating "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[   +2 ms]   Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
[  +45 ms] CustomBuild:
[   +2 ms]   All outputs are up-to-date.
[  +88 ms] FinalizeBuildStatus:
[        ]   Deleting file "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
[   +2 ms]   Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
[   +3 ms] Done Building Project "C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\ZERO_CHECK.vcxproj" (default targets).
[ +223 ms] Project "C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\INSTALL.vcxproj" (1) is building "C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\ALL_BUILD.vcxproj" (3) on
node 1 (default targets).
[   +1 ms] Project "C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\ALL_BUILD.vcxproj" (3) is building
"C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\flutter\flutter_wrapper_app.vcxproj" (4) on node 1 (default targets).
[        ] Project "C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\flutter\flutter_wrapper_app.vcxproj" (4) is building
"C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\flutter\flutter_assemble.vcxproj" (5) on node 1 (default targets).
[        ] PrepareForBuild:
[        ]   Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details.
[   +5 ms] InitializeBuildStatus:
[        ]   Creating "x64\Debug\flutter_assemble\flutter_assemble.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[   +2 ms]   Touching "x64\Debug\flutter_assemble\flutter_assemble.tlog\unsuccessfulbuild".
[  +11 ms] CustomBuild:
[        ]   "The build of 'C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\CMakeFiles\92ee0a9e49727344358f07a1e61c0753\flutter_assemble.rule' depends on
'C:\USERS\T1.EMIN.YAZAN\STUDIOPROJECTS\TESTAPP\WINDOWS\FLUTTER\EPHEMERAL\FLUTTER_WINDOWS.DLL' which is produced by the build of
'C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\CMakeFiles\2569ebe815f63301bca038409625162d\flutter_windows.dll.rule'. The items cannot be built in parallel."
[ +308 ms]   Generating C:/Users/t1.emin.yazan/StudioProjects/testapp/windows/flutter/ephemeral/flutter_windows.dll, C:/Users/t1.emin.yazan/StudioProjects/testapp/windows/flutter/ephemeral/flutter_export.h,
C:/Users/t1.emin.yazan/StudioProjects/testapp/windows/flutter/ephemeral/flutter_windows.h, C:/Users/t1.emin.yazan/StudioProjects/testapp/windows/flutter/ephemeral/flutter_messenger.h,
C:/Users/t1.emin.yazan/StudioProjects/testapp/windows/flutter/ephemeral/flutter_plugin_registrar.h, C:/Users/t1.emin.yazan/StudioProjects/testapp/windows/flutter/ephemeral/flutter_texture_registrar.h,       
C:/Users/t1.emin.yazan/StudioProjects/testapp/windows/flutter/ephemeral/cpp_client_wrapper/core_implementations.cc,
C:/Users/t1.emin.yazan/StudioProjects/testapp/windows/flutter/ephemeral/cpp_client_wrapper/standard_codec.cc,
C:/Users/t1.emin.yazan/StudioProjects/testapp/windows/flutter/ephemeral/cpp_client_wrapper/plugin_registrar.cc,
C:/Users/t1.emin.yazan/StudioProjects/testapp/windows/flutter/ephemeral/cpp_client_wrapper/flutter_engine.cc,
C:/Users/t1.emin.yazan/StudioProjects/testapp/windows/flutter/ephemeral/cpp_client_wrapper/flutter_view_controller.cc, _phony_
[+3739 ms]   [ +252 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms]   [   +4 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
[        ]   [   +5 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +176 ms]   [ +185 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[   +3 ms]   [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[   +1 ms]   [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms]   [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms]   [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms]   [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ]   [   +6 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ]   [   +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[ +149 ms]   [ +152 ms] Initializing file store
[  +39 ms]   [  +37 ms] Done initializing file store
[ +190 ms]   [ +191 ms] Skipping target: gen_localizations
[  +24 ms]   [  +24 ms] Skipping target: gen_dart_plugin_registrant
[+4513 ms]   [+4513 ms] Skipping target: unpack_windows
[+1207 ms]   [+1206 ms] Skipping target: kernel_snapshot_program
[  +14 ms]   [  +15 ms] Skipping target: dart_build
[   +5 ms]   [   +5 ms] Skipping target: install_code_assets
[ +526 ms]   [ +525 ms] Skipping target: debug_bundle_windows-x64_assets
[        ]   [        ] Persisting file store
[  +28 ms]   [  +29 ms] Done persisting file store
[  +41 ms]   [  +41 ms] build succeeded.
[   +8 ms]   [   +8 ms] "flutter assemble" took 6,980ms.
[ +238 ms]   [ +238 ms] Running 1 shutdown hook
[   +1 ms]   [   +1 ms] Shutdown hooks complete
[ +267 ms]   [ +267 ms] exiting with code 0
[ +212 ms] FinalizeBuildStatus:
[   +1 ms]   Deleting file "x64\Debug\flutter_assemble\flutter_assemble.tlog\unsuccessfulbuild".
[   +2 ms]   Touching "x64\Debug\flutter_assemble\flutter_assemble.tlog\flutter_assemble.lastbuildstate".
[   +4 ms] Done Building Project "C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\flutter\flutter_assemble.vcxproj" (default targets).
[  +14 ms] PrepareForBuild:
[   +1 ms]   Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details.
[  +12 ms] InitializeBuildStatus:
[        ]   Creating "flutter_wrapper_app.dir\Debug\flutter_.51B4B794.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[   +5 ms]   Touching "flutter_wrapper_app.dir\Debug\flutter_.51B4B794.tlog\unsuccessfulbuild".
[  +11 ms] CustomBuild:
[   +1 ms]   All outputs are up-to-date.
[ +100 ms] ClCompile:
[   +2 ms]   All outputs are up-to-date.
[  +44 ms] Lib:
[  +15 ms]   All outputs are up-to-date.
[  +11 ms]   flutter_wrapper_app.vcxproj -> C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\flutter\Debug\flutter_wrapper_app.lib
[  +91 ms] FinalizeBuildStatus:
[        ]   Deleting file "flutter_wrapper_app.dir\Debug\flutter_.51B4B794.tlog\unsuccessfulbuild".
[   +2 ms]   Touching "flutter_wrapper_app.dir\Debug\flutter_.51B4B794.tlog\flutter_wrapper_app.lastbuildstate".
[   +4 ms] Done Building Project "C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\flutter\flutter_wrapper_app.vcxproj" (default targets).
[  +80 ms] Project "C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\ALL_BUILD.vcxproj" (3) is building
"C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\flutter\flutter_wrapper_plugin.vcxproj" (6) on node 1 (default targets).
[   +3 ms] PrepareForBuild:
[        ]   Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details.
[  +12 ms] InitializeBuildStatus:
[        ]   Creating "flutter_wrapper_plugin.dir\Debug\flutter_.6BDDB15E.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[   +7 ms]   Touching "flutter_wrapper_plugin.dir\Debug\flutter_.6BDDB15E.tlog\unsuccessfulbuild".
[  +10 ms] CustomBuild:
[   +1 ms]   All outputs are up-to-date.
[  +15 ms] ClCompile:
[        ]   All outputs are up-to-date.
[   +9 ms] Lib:
[   +2 ms]   All outputs are up-to-date.
[   +5 ms]   flutter_wrapper_plugin.vcxproj -> C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\flutter\Debug\flutter_wrapper_plugin.lib
[  +39 ms] FinalizeBuildStatus:
[        ]   Deleting file "flutter_wrapper_plugin.dir\Debug\flutter_.6BDDB15E.tlog\unsuccessfulbuild".
[   +7 ms]   Touching "flutter_wrapper_plugin.dir\Debug\flutter_.6BDDB15E.tlog\flutter_wrapper_plugin.lastbuildstate".
[   +7 ms] Done Building Project "C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\flutter\flutter_wrapper_plugin.vcxproj" (default targets).
[  +54 ms] Project "C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\ALL_BUILD.vcxproj" (3) is building "C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\runner\testapp.vcxproj"
(7) on node 1 (default targets).
[   +1 ms] PrepareForBuild:
[        ]   Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details.
[   +9 ms] InitializeBuildStatus:
[        ]   Creating "testapp.dir\Debug\testapp.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[   +3 ms]   Touching "testapp.dir\Debug\testapp.tlog\unsuccessfulbuild".
[  +12 ms] CustomBuild:
[        ]   All outputs are up-to-date.
[ +122 ms] ClCompile:
[   +2 ms]   C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.44.35207\bin\HostX64\x64\CL.exe /c /IC:\Users\t1.emin.yazan\StudioProjects\testapp\windows
/IC:\Users\t1.emin.yazan\StudioProjects\testapp\windows\flutter\ephemeral /IC:\Users\t1.emin.yazan\StudioProjects\testapp\windows\flutter\ephemeral\cpp_client_wrapper\include /Zi /nologo /W4 /WX
/diagnostics:column /Od /Ob0 /D _UNICODE /D UNICODE /D WIN32 /D _WINDOWS /D _HAS_EXCEPTIONS=0 /D _DEBUG /D "FLUTTER_VERSION=\"1.0.0+1\"" /D FLUTTER_VERSION_MAJOR=1 /D FLUTTER_VERSION_MINOR=0 /D
FLUTTER_VERSION_PATCH=0 /D FLUTTER_VERSION_BUILD=1 /D NOMINMAX /D UNICODE /D _UNICODE /D "CMAKE_INTDIR=\"Debug\"" /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++17
/Fo"testapp.dir\Debug\\" /Fd"testapp.dir\Debug\vc143.pdb" /external:W4 /Gd /TP /wd4100 /errorReport:queue C:\Users\t1.emin.yazan\StudioProjects\testapp\windows\flutter\generated_plugin_registrant.cc
C:\Users\t1.emin.yazan\StudioProjects\testapp\windows\runner\flutter_window.cpp
[ +344 ms]   generated_plugin_registrant.cc
[+1083 ms]   flutter_window.cpp
[+2674 ms]   Generating Code...
[ +338 ms] ResourceCompile:
[   +1 ms]   All outputs are up-to-date.
[ +112 ms] Link:
[   +1 ms]   C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.44.35207\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE
/OUT:"C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\runner\Debug\testapp.exe" /INCREMENTAL /ILK:"testapp.dir\Debug\testapp.ilk" /NOLOGO ..\flutter\Debug\flutter_wrapper_app.lib dwmapi.lib  
C:\Users\t1.emin.yazan\StudioProjects\testapp\windows\flutter\ephemeral\flutter_windows.dll.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib        
advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /manifestinput:C:\Users\t1.emin.yazan\StudioProjects\testapp\windows\runner\runner.exe.manifest /DEBUG
/PDB:"C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/testapp.pdb" /SUBSYSTEM:WINDOWS /TLBID:1 /DYNAMICBASE /NXCOMPAT
/IMPLIB:"C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/testapp.lib" /MACHINE:X64  /machine:x64 testapp.dir\Debug\Runner.res
[   +4 ms]   testapp.dir\Debug\flutter_window.obj
[        ]   testapp.dir\Debug\main.obj
[        ]   testapp.dir\Debug\utils.obj
[        ]   testapp.dir\Debug\win32_window.obj
[        ]   testapp.dir\Debug\generated_plugin_registrant.obj
[+1193 ms]   testapp.vcxproj -> C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\runner\Debug\testapp.exe
[  +44 ms] FinalizeBuildStatus:
[        ]   Deleting file "testapp.dir\Debug\testapp.tlog\unsuccessfulbuild".
[   +2 ms]   Touching "testapp.dir\Debug\testapp.tlog\testapp.lastbuildstate".
[   +4 ms] Done Building Project "C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\runner\testapp.vcxproj" (default targets).
[  +16 ms] PrepareForBuild:
[   +1 ms]   Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details.
[  +15 ms] InitializeBuildStatus:
[        ]   Creating "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[   +4 ms]   Touching "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild".
[  +15 ms] CustomBuild:
[   +1 ms]   All outputs are up-to-date.
[  +56 ms] FinalizeBuildStatus:
[   +1 ms]   Deleting file "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild".
[   +9 ms]   Touching "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\ALL_BUILD.lastbuildstate".
[   +6 ms] Done Building Project "C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\ALL_BUILD.vcxproj" (default targets).
[  +13 ms] PrepareForBuild:
[        ]   Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details.
[  +17 ms] InitializeBuildStatus:
[        ]   Creating "x64\Debug\INSTALL\INSTALL.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[   +5 ms]   Touching "x64\Debug\INSTALL\INSTALL.tlog\unsuccessfulbuild".
[ +265 ms] CustomBuild:
[   +1 ms]   1>
[  +93 ms] PostBuildEvent:
[        ]   setlocal
[        ]   "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake
[        ]   if %errorlevel% neq 0 goto :cmEnd
[        ]   :cmEnd
[        ]   endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
[        ]   :cmErrorLevel
[        ]   exit /b %1
[        ]   :cmDone
[        ]   if %errorlevel% neq 0 goto :VCEnd
[        ]   :VCEnd
[ +304 ms]   -- Install configuration: "Debug"
[  +12 ms]   -- Up-to-date: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/data/icudtl.dat
[   +3 ms]   -- Up-to-date: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/flutter_windows.dll
[   +4 ms]   -- Up-to-date: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug
[  +78 ms]   -- Installing: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/data/flutter_assets
[  +12 ms]   -- Installing: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/data/flutter_assets/AssetManifest.bin
[  +31 ms]   -- Installing: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/data/flutter_assets/AssetManifest.bin.json
[  +20 ms]   -- Installing: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/data/flutter_assets/AssetManifest.json
[  +17 ms]   -- Installing: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/data/flutter_assets/FontManifest.json
[  +26 ms]   -- Installing: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/data/flutter_assets/fonts
[  +14 ms]   -- Installing: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/data/flutter_assets/fonts/MaterialIcons-Regular.otf
[  +38 ms]   -- Installing: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/data/flutter_assets/kernel_blob.bin
[ +267 ms]   -- Installing: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/data/flutter_assets/NativeAssetsManifest.json
[  +41 ms]   -- Installing: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/data/flutter_assets/NOTICES
[  +45 ms]   -- Installing: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/data/flutter_assets/NOTICES.Z
[  +57 ms]   -- Installing: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/data/flutter_assets/packages
[  +12 ms]   -- Installing: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/data/flutter_assets/packages/cupertino_icons
[  +10 ms]   -- Installing: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/data/flutter_assets/packages/cupertino_icons/assets
[  +39 ms]   -- Installing: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/data/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf
[  +54 ms]   -- Installing: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/data/flutter_assets/shaders
[  +15 ms]   -- Installing: C:/Users/t1.emin.yazan/StudioProjects/testapp/build/windows/x64/runner/Debug/data/flutter_assets/shaders/ink_sparkle.frag
[ +119 ms] FinalizeBuildStatus:
[   +6 ms]   Deleting file "x64\Debug\INSTALL\INSTALL.tlog\unsuccessfulbuild".
[        ]   Touching "x64\Debug\INSTALL\INSTALL.tlog\INSTALL.lastbuildstate".
[   +6 ms] Done Building Project "C:\Users\t1.emin.yazan\StudioProjects\testapp\build\windows\x64\INSTALL.vcxproj" (default targets).
[  +28 ms] Build succeeded.
[        ]     0 Warning(s)
[        ]     0 Error(s)
[        ] Time Elapsed 00:00:21.46
[ +101 ms] Building Windows application... (completed in 24.3s)
[   +4 ms] √ Built build\windows\x64\runner\Debug\testapp.exe
[+5431 ms] VM Service URL on device: http://127.0.0.1:56829/yS_UcMbVRfU=/
[   +4 ms] Caching compiled dill
[  +95 ms] Connecting to service protocol: http://127.0.0.1:56829/yS_UcMbVRfU=/
[ +111 ms] Exception attempting to connect to the VM Service: WebSocketException: Connection to 'http://127.0.0.1:56829/yS_UcMbVRfU=/ws#' was not upgraded to websocket, HTTP status code: 502
[   +2 ms] This was attempt #1. Will retry in 0:00:00.100000.
[ +137 ms] Exception attempting to connect to the VM Service: WebSocketException: Connection to 'http://127.0.0.1:56829/yS_UcMbVRfU=/ws#' was not upgraded to websocket, HTTP status code: 502
[        ] This was attempt #2. Will retry in 0:00:00.200000.
[ +233 ms] Exception attempting to connect to the VM Service: WebSocketException: Connection to 'http://127.0.0.1:56829/yS_UcMbVRfU=/ws#' was not upgraded to websocket, HTTP status code: 502
[   +1 ms] This was attempt #3. Will retry in 0:00:00.400000.
[ +435 ms] Exception attempting to connect to the VM Service: WebSocketException: Connection to 'http://127.0.0.1:56829/yS_UcMbVRfU=/ws#' was not upgraded to websocket, HTTP status code: 502
[        ] This was attempt #4. Will retry in 0:00:00.800000.
[ +830 ms] Exception attempting to connect to the VM Service: WebSocketException: Connection to 'http://127.0.0.1:56829/yS_UcMbVRfU=/ws#' was not upgraded to websocket, HTTP status code: 502
[        ] This was attempt #5. Will retry in 0:00:01.600000.
[+1629 ms] Exception attempting to connect to the VM Service: WebSocketException: Connection to 'http://127.0.0.1:56829/yS_UcMbVRfU=/ws#' was not upgraded to websocket, HTTP status code: 502
[        ] This was attempt #6. Will retry in 0:00:01.600000.
[+1626 ms] Exception attempting to connect to the VM Service: WebSocketException: Connection to 'http://127.0.0.1:56829/yS_UcMbVRfU=/ws#' was not upgraded to websocket, HTTP status code: 502
[   +1 ms] This was attempt #7. Will retry in 0:00:01.600000.

Flutter Doctor output

Doctor output
[√] Flutter (Channel stable, 3.32.5, on Microsoft Windows [Version 10.0.26100.4349], locale en-US) [1,631ms]
    • Flutter version 3.32.5 on channel stable at C:\Users\t1.emin.yazan\dev\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision fcf2c11572 (2 weeks ago), 2025-06-24 11:44:07 -0700
    • Engine revision dd93de6fb1
    • Dart version 3.8.1
    • DevTools version 2.45.1

[√] Windows Version (Windows 11 or higher, 24H2, 2009) [3.7s]

[√] Android toolchain - develop for Android devices (Android SDK version 35.0.1) [6.8s]
    • Android SDK at C:\Users\t1.emin.yazan\AppData\Local\Android\sdk
    • Platform android-35, build-tools 35.0.1
    • Java binary at: C:\Program Files\Java\jdk-21\bin\java
      This JDK is specified in your Flutter configuration.
      To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version Java(TM) SE Runtime Environment (build 21.0.7+8-LTS-245)
    • All Android licenses accepted.

[√] Chrome - develop for the web [458ms]
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Enterprise 2022 17.14.6 (June 2025)) [456ms]
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Enterprise
    • Visual Studio Enterprise 2022 version 17.14.36212.18
    • Windows 10 SDK version 10.0.26100.0

[√] Android Studio (version 2024.3.2) [39ms]
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = C:\Program Files\Android\Android Studio
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13368085-b895.109)

[√] VS Code (version 1.101.2) [36ms]
    • VS Code at C:\Users\t1.emin.yazan\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.114.0

[√] Proxy Configuration [209ms]
    • HTTP_PROXY is set
    • NO_PROXY is localhost,127.0.0.1;::1
    • NO_PROXY contains localhost
    • NO_PROXY contains ::1
    • NO_PROXY contains 127.0.0.1

[√] Connected device (3 available) [884ms]
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.26100.4349]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 138.0.7204.97
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 138.0.3351.65

[√] Network resources [826ms]
    • All expected network resources are available.

• No issues found!```

</details>

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: solvedIssue is closed as solvedteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy