0

iam I am trying to install flutter and work in vs codeVS Code editor

So firstFirst I downloaddownloaded the latest version of flutter ..ans install vs codeand installed VS Code, then I addadded the extensionextensions flutter and dart ..then Then I connect my device in usb and put it in developer mode .. And then I wrote in terminal 'flutter doctor " to validation if I make true .. so the device is appear in the bottom of screen of vsc but when I press f5 or wrote in terminal ' flutter run ' don't run .. and the problem is in image and I don't know how to solve it .. sorry

Sorry for my English language itsit's not perfect .. [I try a lot of things and failed] sorry I try a lot of things and failed

Sorry for a lot of talking thanks

Thanks.

mayaghj
  • 15
  • 7
  • The image is missing from the question. Also please paste the error here – Kaushik Chandru Aug 07 '22 at 17:48
  • Does [cmdline-tools component is missing"](https://stackoverflow.com/q/68236007/10157127) answer your question. Also follow the [installation guide.](https://docs.flutter.dev/get-started/install) – Md. Yeasin Sheikh Aug 07 '22 at 19:13
  • Kaushik Chandru sorry for image .. iam beggainer in stackoverflow and dont know why dont let me to send the screen for ` flutter doctor ` command .. i will try to past it here – mayaghj Aug 07 '22 at 21:16
  • Yeasin Sheikh yes is missing and iam trying to download it right now .. thanks – mayaghj Aug 07 '22 at 21:17
  • Checking Android licenses is taking an unexpectedly long time...[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable. – mayaghj Aug 07 '22 at 21:28
  • [X] Visual Studio - develop for Windows X Visual Studio not installed; this is necessary for Windows development. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with C++" workload, including all of its default components ! Doctor found issues in 3 categories. – mayaghj Aug 07 '22 at 21:28

1 Answers1

0

You need to install vs2019 to use desktop version and chrome, its obviously clear

Follow this link and install vs2019 ,then install desktop development with c++

For cmdline-tool error follow this answer You need to install sdk then run flutter doctor --android-lienses to accept sdks

I think its better to see answer of this question, just research on internet to solve this.

mohammad esmaili
  • 1,614
  • 2
  • 4
  • 17