Hello I hope you are well. I have a problem when compiling my Flutter application for the Windows platform. Indeed when I launch my Flutter application by pressing the “Run” button of VScode (or of any IDE compatible with Flutter) I have this error below:
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppCommon.targets(234,5): error MSB6006: Arrêt de "cmd.exe" avec le code 1. [C:UsersAcer AspireVSCodeProjectsatlas_workspacebuildwindowsflutterflutter_assemble.vcxproj] Exception: Build process failed.
But strangely by using the Powershell terminal, by being at the root of my project, by executing the command
flutter run -d Windows the application compiles and launches without problem.
Can you tell me what the problem is? And how to solve it? Thanks
My version of Windows : windows 10 version 20H2 ( operating system verion 19042.884)
The output of the flutter doctor command:
Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 2.0.3, on Microsoft Windows [version 10.0.19042.844], locale fr-FR) [√] Android toolchain - develop for Android devices (Android SDK version 30.0.3) [√] Chrome - develop for the web [√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.7.6) [√] Android Studio (version 4.1.0) [√] IntelliJ IDEA Community Edition (version 2020.2) [√] VS Code (version 1.52.1) [√] Connected device (3 available) • No issues found!
The output of the flutter –version command:
Flutter 2.0.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision 4d7946a68d (2 weeks ago) • 2021-03-18 17:24:33 -0700 Engine • revision 3459eb2436 Tools • Dart 2.12.2
P.S: I have Visual Studio 2019 and C++ tools installed on my OS
This seems to be a known bug, it’s because you have spaces in your user name Acer Aspire :