How to install Flutter in Android Studio 2022 on Windows

미연

·

2022. 5. 5. 12:54

Welcome Back!To begin installing Flutter, we first begin installing Android Studio at this developer site of Google Just press the Download button to download To install Android Studio, you also need to ensure the RAM needed for the computer to work properly You can read it at system requirements section For Windows, the minimum RAM level of 4GB ,is recommended as 8GB Minimum 2GB available disk space 4GB recommended for IDE, Android SDK, Emulator system image Minimum screen resolution of 1280x800 You can also read system requirements for Mac, Linux Now after downloading Andoird Studio please click open it directly in the browser This is the welcome interface, click Next Then select the additional Android Virtual Device because it helps run the virtual simulator Now you need to wait a bit so I'll fast forward select Start Andoid Stuido to start it This is where your projects will be saved, so select the Previous version checkbox Click OkChoose the standard version, to have all the most complete features For customization, you will have to customize the installation and installation of the components yourself. If you don't know anything, choose Standard There is a Light and Darcula interface to choose what you like, you can customize it in Android Studio easily It's a little different here because I've installed Android Studio before so if it's different, leave the default and click Finish Alright!Next download and install Flutter SDK We have Windows, Mac, Linux so we have Windows ,click install for Windows here click and download this .zip file or you can also download it via the command line but you will download the latest release in April so there will be some problems, so I want to download the older version in February There are the latest and older versions so choose the older version for more stability The latest version was released on April 18, 2020, and the most recent version was on February 12, 2020 so I will choose version 8To open this .zip file you will need decompression software like Winrar, Winzip, 7zip etc After extracting it inside it includes a SDK folder flutter then move it where you want it to be, perhaps in the Program file I will move the flutter SDK folder to Progam Files Just drag and drop it, then it will extract then it will require admin rights to migrate, then click Continue Alright, now we need to update the path, this will help you manipulate the commands in Flutter That's the path to the bin directory Just copy PathNote these two parts, it must be a system variable You then paste it hereNext we will check if the version is correct, just to make sure it works Great! Exactly the version we installed furthermore we can also try it with git bash It gives the same resultNext let's copy this command to check what we lack it's the Flutter plugin and the Dart plugin Next we will install these two plugins Don't forget to install some components in Android Studio You read the document herewe are going to customize and install some SDK in Android Studio components so follow me In the SDK Platform, select the version of Android you prefer and select the same components as I did with this Android 9 Pie then tick these versions and click Apply to download, so I downloaded Android 9 Pie and so you download it yourself In SDK Tools, you also need to select the following options and choose version 28.0.3Again, check these optionsI downloaded it, so I just clicked OK, if you haven't already, click Apply then click OK Next we will install Plugin Flutter and Dart It is also available for Visual studio code This section is also for IntelliJ IDEA You only need to enter Flutter to search Oh, sorry it must be Marketplace Exactly it, when you install it will also include Dart so Dart is also installed, so click Restart IDE Great, now we have Flutter!This is the project name you can edit it In this section, you will also have to enter the path to the Flutter SDK folder It in the Program Files we moved it earlier Just click the flutterThis is the reverse domain, if you have the domain name, enter it, otherwise leave the default Alright!Now I will show you how to create a new virtual device Then just click Create new device Here I will choose pixel 3aand here is also Android 9 Pie, if you have not selected the android versions in the previous section to customize the components in Android Sdk please come back to install Then just click here to Download Alrightit will take a bit for the emulator to boot This is the amount of storage so the next time you run the emulator faster again after running the emulator, to run the Flutter application click this green button to run Flutter The first time you run Flutter, it will take a few minutes to build, after it is successfully built, the next time you run Flutter, it will be much faster because it is saved on disk.Please be patient it will take more than 6 minutes for the first time, the next you only take 1 minute!This indicates that the Flutter application has been successfully built Great!Building apps with Flutter is great and faster, because Flutter has a Hot Load feature so it will automatically reload every time you click save or Ctrl + S.I hope you enjoy it!So you know how to install and create the first Flutter application Although this post is a bit long, it's a complete guide for you and get you started with Flutter easily!I hope you enjoyed the post and don't forget to subscribe to Youtube ComputerBerry blog to help us get motivated and support us!Thanks again! good bye, see you again!