Set up Flutter with VSCODE in Windows | flutter in 2023

Поделиться
HTML-код
  • Опубликовано: 10 ноя 2020
  • This tutorial covers how to set up flutter with VS CODE in windows 10 in 7 minutes.
    We deal with setting up environment variables and also how to accept android licenses.
    Almost any android emulator would work just fine.
    Also, you don't absolutely need Android Studio to use flutter.
    Timestamps for quick navigation:
    1. Downloading and installing VS CODE 00:34
    2. Downloading and installing Flutter SDK 01:33
    3. Setting up the environment variables 02:33
    4. Installing Flutter extension in VS CODE 03:41
    5. Checking flutter installation using flutter doctor 04:14
    6. Creating new flutter project 05:06
    7. Accepting android licenses 06:18
    7.1 Command for accepting licenses(without quotes): "flutter doctor --android-licenses"
    8. Running and installing your sample flutter app in emulator 07:00
    Links 🔗:
    ✅ Linkedin: / apoorv-pandey
    ✅ Github: github.com/apoorvpandey0

Комментарии • 126

  • @O-AdrielTravis
    @O-AdrielTravis 2 года назад +4

    sir do i need to install android studio too?

    • @Apoorvpandey
      @Apoorvpandey  2 года назад +2

      Yes... for the android SDK

    • @O-AdrielTravis
      @O-AdrielTravis 2 года назад

      @Apoorv pandey can i not install android studio and just install android sdk?

    • @Apoorvpandey
      @Apoorvpandey  2 года назад +1

      You can if you wish; but it may be tricky... that's its said to install both
      You can try it out its on Android studios website

    • @O-AdrielTravis
      @O-AdrielTravis 2 года назад

      @@Apoorvpandey okay... Thanks sir

    • @Ramsey.001
      @Ramsey.001 2 года назад +1

      Is there any extension which can use instead android studio

  • @zamokuhlekunene9261
    @zamokuhlekunene9261 Год назад +1

    This is the simplest setup tutorial thank you so much

  • @vidhatatiwari4785
    @vidhatatiwari4785 3 года назад +7

    I wish when i was starting flutter this video was avalible in youtube........well explained apporv

    • @Apoorvpandey
      @Apoorvpandey  3 года назад

      Even I was a noob back then haha

  • @jehankandy2970
    @jehankandy2970 Год назад +1

    thank you sir your video is easy to understand keep it up sir
    provide more videos like this
    good luck sir
    Love from Sri Lanka
    💪💪💪💪

  • @Apoorvpandey
    @Apoorvpandey  3 года назад +18

    Timestamps for quick navigation:
    1. Downloading and installing VS CODE 00:34
    2. Downloading and installing Flutter SDK 01:33
    3. Setting up the environment variables 02:33
    4. Installing Flutter extension in VS CODE 03:41
    5. Checking flutter installation using flutter doctor 04:14
    6. Creating new flutter project 05:06
    7. Accepting android licenses 06:18
    7.1 Command for accepting licenses(without quotes): "flutter doctor --android-licenses"
    8. Running and installing your sample flutter app in emulator 07:00

    • @nitesharu1269
      @nitesharu1269 2 года назад +1

      emulator setup?

    • @chind0na
      @chind0na 2 года назад

      Put those timestamps in the video description for better SEO results. It also shows as chapters in the video slider.

  • @hirukamunasinghe9266
    @hirukamunasinghe9266 Год назад

    Thank you so much for this🙏. This helped me a lot, all the best💯👍

  • @__Fahad-yp3pl
    @__Fahad-yp3pl 3 года назад +2

    your tutorial is so much good...i'll be very happy to you if you be continue the flutter series.....

  • @Mr3bSquad
    @Mr3bSquad 2 года назад

    hello after all you say i always receive Android sdkmanager not found. Update to the latest
    Android SDK and ensure that the cmdline-tools are
    installed to resolve this.

  • @animishshrivant7268
    @animishshrivant7268 2 года назад

    Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to resolve this. This error is appearing.

  • @aniruddhborkar5542
    @aniruddhborkar5542 2 года назад

    Error-
    Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to resolve this.

  • @toluwaniakinkoye9569
    @toluwaniakinkoye9569 2 года назад

    Good day
    After using the flutter doctor command my vs code wasn't recognized and it asks for Android sdk what could be the problem

  • @DIZZLEBOI44
    @DIZZLEBOI44 2 года назад

    Thanks so much for this

  • @akashuday7107
    @akashuday7107 2 года назад +7

    very well explained thanks a lot sir!!!
    Some errors i got and how i fixed it
    (ERROR 1) [flutter] flutter doctor -v 'crumb' is not recognized as an internal or external command, operable program or batch file. Error: Unable to find git in your PATH. exit code 1
    (FIX) Go to flutter installation folder and inside flutter/bin edit the flutter.bat file using a text editor and remove the line (20) that says
    IF EXIST "%mingit_path%" SET PATH=%PATH%;%mingit_path%
    The code should look like this on those lines
    REM If available, add location of bundled mingit to PATH
    SET mingit_path=%FLUTTER_ROOT%\bin\mingit\cmd
    Save and Run flutter doctor and everything should work fine.
    (ERROR 2) flutter doctor takes too long
    (fix) I downloaded the previous version of the sdk it worked like a charm
    (ERROR 3) Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to resolve this.
    (fix) Open Android Studio
    Tools Menu, SDK Manager
    In the window that comes up there are inner panels, choose SDK Tools panel
    Tick Android SDK Command-line Tools
    Choose Apply button near the bottom of the window
    This worked
    (ERROR 4) `The term 'flutter' is not recognized as the name of a cmdlet, function, script file, or operable program.
    (fix) put the correct part in the env variables like i had put D:\flutter insted of D:\flutter\bin that worked

    • @maruf2050
      @maruf2050 2 года назад +1

      need to restart vscode after changing the path in environment variables. great tips though

  • @gameup3372
    @gameup3372 3 года назад

    i just love it thank you

  • @GlitchX06
    @GlitchX06 2 года назад

    im facing this error ...............Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to resolve this.

  • @thundernova6718
    @thundernova6718 Год назад

    It is very helpful video for vscode

  • @timjenkinson26
    @timjenkinson26 2 года назад

    Great video

  • @loargaming4016
    @loargaming4016 2 года назад

    it doesnt accept android licenses,says android sdk manager not found

  • @domxz855
    @domxz855 11 месяцев назад

    When i copy flutter doctor --android-license why it says unable to locate android sdk?

  • @ignasgs8005
    @ignasgs8005 3 года назад +3

    Big up broo

  • @muhammadadilnaeem1333
    @muhammadadilnaeem1333 2 года назад

    Android sdkmanager not found.mera ye issue araha hai iss ka solution btaoo

  • @online_tech1
    @online_tech1 Месяц назад

    Thanks sir

  • @Itsmeyouknow525
    @Itsmeyouknow525 2 года назад

    unable to locate andriod sdk what should i do

  • @martialartssquad5154
    @martialartssquad5154 Год назад

    Bro it is saying unable to locate android sdk kindly guide me

  • @venkatbhargav8207
    @venkatbhargav8207 Год назад

    it showing unable to locate sdk. plz help...

  • @TheBatTech
    @TheBatTech 3 года назад +2

    Glad i am not the only one who uses Genymotion as emulator

  • @mon2804
    @mon2804 2 года назад +1

    Sir mine is error' on step 5 ( Checking flutter installation using flutter doctor )
    It say :
    [flutter] flutter doctor -v
    'where' is not recognizef as an internal or external command,
    operable program or batch file.
    Error : Unable to find git in your PATH.
    exit code 1

    • @nidashaikh7099
      @nidashaikh7099 2 года назад

      Same... Share the solution if possible

  • @shafeekedits
    @shafeekedits Год назад

    I got flutter doctor not found how to fix

  • @fun_and_games758
    @fun_and_games758 2 года назад

    It is showing unable to find git path

  • @timsolomon07
    @timsolomon07 2 года назад

    Am trying to run android licenses on the vscode but it's showing unable to locate Android SDK.
    What can i do please

  • @venkatbhargav8207
    @venkatbhargav8207 2 года назад +2

    Could not find a flutter SDK please ensure flutter is installed and in your path (you may need to restart)
    I followed every step which said but it happens how can I solve that issue bro

  • @drivewithritik
    @drivewithritik 3 года назад +3

    Well explained bhai

  • @EKMEDIA
    @EKMEDIA 3 года назад +2

    sir,
    flutter : The term 'flutter' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
    name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + flutter doctor --android-licenses
    + ~~~~~~~
    + CategoryInfo : ObjectNotFound: (flutter:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    this error found on Command for accepting licenses(without quotes): "flutter doctor --android-licenses"
    what can i do

    • @Apoorvpandey
      @Apoorvpandey  3 года назад

      You have missed the environment variables step, please check that.
      This should be solved

    • @narutokage4428
      @narutokage4428 2 года назад +2

      @@Apoorvpandey it doesnt work

  • @indorilaal8311
    @indorilaal8311 2 года назад

    Kindy guide me flutter with visual Studio 2022 not vs code.

  • @ibrahimmoharam3788
    @ibrahimmoharam3788 Год назад

    Is it ok if I have vs code user version

  • @alaabarakat6404
    @alaabarakat6404 Год назад

    Unable to locate Android SDK. ??????

  • @laurenchinoda9900
    @laurenchinoda9900 Год назад

    Sir,, is the zip file download necessary when I can just download the extension in vs code..

  • @prabhashsrivastava1039
    @prabhashsrivastava1039 3 года назад +2

    While installing android licenses it shows 'unable to locate Android SDK'

    • @Apoorvpandey
      @Apoorvpandey  3 года назад

      ruclips.net/video/Q2RniFKS_Pw/видео.html
      You need to install this as well, you may not use it for development purposes but it'll install tha android sdk with it.

  • @hurabbasshahid8234
    @hurabbasshahid8234 2 года назад

    Could not find a Flutter SDK. Please ensure flutter is installed and in your PATH (you may need to restart). This error

    • @Apoorvpandey
      @Apoorvpandey  2 года назад

      Environment variables related error please check that part carefully

  • @anashabib2731
    @anashabib2731 3 года назад +1

    JAVA_HOME is not set and no 'java' command could be found in your PATH.
    Please set the JAVA_HOME variable in your environment to match the
    location of your Java installation.
    help me solve this error when i try for android licence

    • @ankitkumarpandey3284
      @ankitkumarpandey3284 3 года назад

      Same problem

    • @ankitkumarpandey3284
      @ankitkumarpandey3284 3 года назад

      Pls reply

    • @anashabib2731
      @anashabib2731 3 года назад

      @@ankitkumarpandey3284 just search how to set up Java development kit and you’ll get many videos on youtube it solved my problem
      If you have any other after that feel free to leave a msg here

  • @ankitabiswas67
    @ankitabiswas67 3 года назад +2

    System UI isn't responding error. Can you help me resolve it😭

    • @Apoorvpandey
      @Apoorvpandey  3 года назад

      Use Pixel 2 it works fine, Pixel 3 gives me same issue.

  • @80_kmph
    @80_kmph 2 года назад +1

    Could not find a Flutter SDK. Please ensure flutter is installed and in your PATH (you may need to restart).
    I followed same steps but i got this error. Please solve it

    • @Apoorvpandey
      @Apoorvpandey  2 года назад

      Environment variables are not set correctly

    • @venkatbhargav8207
      @venkatbhargav8207 2 года назад

      Here is the same problem bro how can it solved

  • @vjdev7260
    @vjdev7260 2 года назад

    6:30 i facing issues is unable to locate Android SDK pls help me

    • @Apoorvpandey
      @Apoorvpandey  2 года назад

      ruclips.net/video/Q2RniFKS_Pw/видео.html

  • @offorifunanya4361
    @offorifunanya4361 2 года назад +9

    I’m trying to accept android licenses but it’s saying “android sdkmanager not found. Update to the latest android sdk and ensure that the cmdline tools are installed to resolve this”🥴

    • @pipasees
      @pipasees 2 года назад +4

      Open android studio > Tools > SDK tools > enable cmdline tools and click apply. It would be fixed

    • @shoebsiddiqui3238
      @shoebsiddiqui3238 2 года назад +1

      @@pipasees thanks

    • @xbrook5490
      @xbrook5490 Год назад

      @@pipasees Thank you so much brother

    • @whyuaregay.7322
      @whyuaregay.7322 Год назад

      @@pipasees thanks

  • @kumkumrathour5015
    @kumkumrathour5015 3 года назад +1

    Useful vedio 👍

  • @invoker5920
    @invoker5920 2 года назад

    dude i have android studio code and i installed sdk but when i click palette in vscode it dosnt show flutter new project for me , what should i do?

    • @Apoorvpandey
      @Apoorvpandey  2 года назад

      Have you installed Flutter extension for VSCODE?

    • @invoker5920
      @invoker5920 2 года назад

      @@Apoorvpandey yea dudr i have both flutter and dart,but i cant start new flutter project,it dosnt even show in list,and when i use flutter in cmd its show its availbe and update,idk what should i do

  • @nixonblackmond1751
    @nixonblackmond1751 2 года назад +1

    How long does running "flutter doctor" usually take? If its taking too long what could the issue be? Its taking me an hour before giving up because I feel its taking too long but no error?

    • @nixonblackmond1751
      @nixonblackmond1751 2 года назад

      @Chirag Thanks, apparently its a common issue with Flutter. Something to do with cache I think.

  • @piyushtidke96
    @piyushtidke96 3 года назад +2

    sir mera android sdk manger kaise install karu vs code me or sir android studio install nhi kiya pr vs code install kiya fir bhi command me nhi dikhra please help sir.

    • @Apoorvpandey
      @Apoorvpandey  3 года назад +1

      You don't need android SDK if you just want it for the emulator. Just install VSCODE follow the steps and then use any other emulator like Genymotion, Bluestacks or any other emulator.

    • @Apoorvpandey
      @Apoorvpandey  3 года назад

      I hope this will resolve your query.

    • @piyushtidke96
      @piyushtidke96 3 года назад

      @@Apoorvpandey To sir , windows cmd me dikhta hai ki android sdk install kro path do, vo kiske liye hota hai?, or Sir jab mene same flutter doctor --android-licenses dala to unable to locate sdk dikhaya , ab kya kru sir ?please help

    • @Apoorvpandey
      @Apoorvpandey  3 года назад +1

      @@piyushtidke96 do you have git installed? Also can you share your flutter doctor output

    • @harshseta274
      @harshseta274 3 года назад +1

      @@Apoorvpandey I an having the same issue...after the command flutter doctor --android-licenses it shows Unable to locate Android SDK

  • @nafisatabassum1995
    @nafisatabassum1995 3 года назад +1

    for license agreement part ,after pasting the command it is showing that"Unable to locate android sdk" Please helpme
    where is the problem

    • @Apoorvpandey
      @Apoorvpandey  3 года назад

      ruclips.net/video/Q2RniFKS_Pw/видео.html
      You need to install this as well, you may not use it for development purposes but it'll install tha android sdk with it.

  • @loargaming4016
    @loargaming4016 2 года назад

    i got some error

  • @chinweokah2000
    @chinweokah2000 2 года назад

    Thanks bruv do how to create an online chess app

  • @takirajani2693
    @takirajani2693 3 года назад +1

    unable to locate android sdk.....please help me to solve this error

    • @Apoorvpandey
      @Apoorvpandey  3 года назад

      You might need to install android sdk if not installed ruclips.net/video/Q2RniFKS_Pw/видео.html

    • @takirajani2693
      @takirajani2693 3 года назад +1

      @@Apoorvpandey I don't want to download android studio that's why I installed VS code.....without android studio how i can download android sdk?

    • @Apoorvpandey
      @Apoorvpandey  3 года назад +1

      It's tedious work without android studio but you can check this
      stackoverflow.com/questions/37505709/how-do-i-download-the-android-sdk-without-downloading-android-studio

  • @nehemiyashiferaw3442
    @nehemiyashiferaw3442 3 года назад

    Thanks

  • @firdodev
    @firdodev 3 года назад +2

    where i can find the link to setup emulator

    • @Apoorvpandey
      @Apoorvpandey  3 года назад

      You can use Genymotion emulator or get the android studio emulator.
      I'll be posting a video on both soon

    • @firdodev
      @firdodev 3 года назад

      @@Apoorvpandey thank you very much

  • @sahirjaman10
    @sahirjaman10 3 года назад

    where is your emulator video brother.?

    • @Apoorvpandey
      @Apoorvpandey  3 года назад

      ruclips.net/video/Q2RniFKS_Pw/видео.html&ab_channel=ApoorvpandeyApoorvpandey
      Please check this video for AVD setup

  • @H-MORAD
    @H-MORAD 2 года назад

    this flutter installation is not complet

  • @Test-with-Hamza
    @Test-with-Hamza 3 года назад +2

    emulator ki b video bna den sir ek...

  • @naseemfiver7914
    @naseemfiver7914 2 года назад

    your for help!

  • @harshitadubey3772
    @harshitadubey3772 3 года назад

    Unable to locate android sdk is coming

    • @Apoorvpandey
      @Apoorvpandey  3 года назад

      Install the android studio or the sdk separately

    • @Apoorvpandey
      @Apoorvpandey  3 года назад

      ruclips.net/video/Q2RniFKS_Pw/видео.html

  • @neb542
    @neb542 3 года назад

    this video did not work for me.

    • @Apoorvpandey
      @Apoorvpandey  3 года назад

      Can you give me some error or problem that you are facing?

    • @Apoorvpandey
      @Apoorvpandey  3 года назад

      You might need to install android sdk if not installed ruclips.net/video/Q2RniFKS_Pw/видео.html

    • @neb542
      @neb542 3 года назад

      @@Apoorvpandey I think there's a problem for those that have windows subsystem for Linux integrated into vs code. It has issues with the reading of flutter file in bin. I have android sdk. Flutter commands only work in powershell or window's cmd

    • @Apoorvpandey
      @Apoorvpandey  3 года назад +1

      Okay, so you want to run flutter commands from wsl right? I guess there would be some flutter installation steps for linux that may help here.

  • @patrick254sunday
    @patrick254sunday 2 года назад

    We'd

  • @user-uh8wh2wn9s
    @user-uh8wh2wn9s 2 года назад

    wof i am fail TERMINAL

  • @-NIRANJAN-mg4nb
    @-NIRANJAN-mg4nb Год назад

    this video doesn't make any sense, ur not showing how to setup emulator. the main important thing

  • @ghala1168
    @ghala1168 Год назад

    I downloaded the extensions and when i do ctrl+shift +p and write flutter , nothing appear to me🥲🥲🥲🥲🥲

    • @ghala1168
      @ghala1168 Год назад

      I downloaded everything even when i write flutter doctor everything is checked and working