# Flutter install on Ubuntu 22.04 ## Table of Content According to [Flutter Get started](https://docs.flutter.dev/get-started/install/linux) ``` sudo snap install flutter --classic ``` ![](https://hackmd.io/_uploads/BkAx3gPSn.png) ``` flutter sdk-path ``` ![](https://hackmd.io/_uploads/S1WrnlwB3.png) ![](https://hackmd.io/_uploads/SkSvnxvH3.png) Then we run the flutter doctor to check our environment ``` flutter doctor ``` ![](https://hackmd.io/_uploads/SyYflbvB2.png) I prefer using Android Studio so download it from [Android Studio download page] (https://developer.android.com/studio). Extract to a subdirectory where in the /home directory afterwards run `./studio.sh` ![](https://hackmd.io/_uploads/HkvdBbDS3.png) Next ![](https://hackmd.io/_uploads/ryVPPWwB3.png) Choose Standard and Next ![](https://hackmd.io/_uploads/SkTODZDSn.png) Keep selecting Darcula and Next ![](https://hackmd.io/_uploads/ry3tw-wB3.png) Next ![](https://hackmd.io/_uploads/B1govWPHn.png) Accept license and Next ![](https://hackmd.io/_uploads/HJT0vbvS3.png) Accept license and Next ![](https://hackmd.io/_uploads/SJA1_WvBn.png) Finish ![](https://hackmd.io/_uploads/r1ix_bPr3.png) Start downloading and installing ![](https://hackmd.io/_uploads/SkLf_-PH3.png) We can see Android SDK is up to date. and Finish ![](https://hackmd.io/_uploads/S1Azc-Prn.png) The IDE welcome page show up ![](https://hackmd.io/_uploads/H1-O5-PB3.png) Run flutter doctor again ![](https://hackmd.io/_uploads/HywfibDHn.png) Go back to the IDE and press More Actions ![](https://hackmd.io/_uploads/H1-O5-PB3.png) Click SDK manager ![](https://hackmd.io/_uploads/HJRmkfPBn.png) Check Android SDK Command-line Tools(latest) on SDK Tools list and apply ![](https://hackmd.io/_uploads/rkPOyMDBh.png) Press OK ![](https://hackmd.io/_uploads/SkAzefwrn.png) Done and Finish ![](https://hackmd.io/_uploads/ryC8xGPHn.png) Install flutter on the IDE ![](https://hackmd.io/_uploads/BkwTxzvH2.png) Accept ![](https://hackmd.io/_uploads/r1oJ-MPH2.png) Install dependancies ![](https://hackmd.io/_uploads/rJf--zwBh.png) Restart the IDE when the installation is finished ![](https://hackmd.io/_uploads/rkLC-GwH3.png) Run fltter doctor ![](https://hackmd.io/_uploads/rkjQfGvH2.png) Follow the instruction and run the command ``` flutter doctor --android-licenses ``` Give y to all the licenses ![](https://hackmd.io/_uploads/BkcTGfvr2.png) No issues found! ![](https://hackmd.io/_uploads/r1AOXfwS3.png) Run the following command for installing the additional packages ``` sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev ``` Create and Run the first APP Click the New Flutter Project button ![](https://hackmd.io/_uploads/rkLC-GwH3.png) Select Flutter and Next ![](https://hackmd.io/_uploads/BkBxBTwS3.png) Enter a project name(lower cases) and Create ![](https://hackmd.io/_uploads/SyoNSTDB3.png) The Flutter project is created ![](https://hackmd.io/_uploads/Sy8uEaDr2.png) The Targer selector has no device selected ![](https://hackmd.io/_uploads/Hk0BcpvH2.png) ![](https://hackmd.io/_uploads/By1kLavr2.png) Open Device Manager ![](https://hackmd.io/_uploads/BkVH8awrn.png) Click Create device ![](https://hackmd.io/_uploads/HyN1vTPBn.png) Select a device and Next ![](https://hackmd.io/_uploads/Bkr_YTDHn.png) Next ![](https://hackmd.io/_uploads/B1DtKavB3.png) Reflash the Targer selector util the devices show up ![](https://hackmd.io/_uploads/ry_k5aPH2.png) Select it and press run then wait for the response(may take minutes depends on PC or NB performance) ![](https://hackmd.io/_uploads/HJKNjTwH2.png) Check the Running Devices ![](https://hackmd.io/_uploads/HJf2A6wH3.png) Display the running device on single window ![](https://hackmd.io/_uploads/r1FPJCPS2.png) Resize the window and we can press the + button for testing ![](https://hackmd.io/_uploads/HJz21Cvrh.png) After testing, we can stop the APP ![](https://hackmd.io/_uploads/H148bRPSn.png)