![]() ![]() Run the following command to see if there are any dependencies you need to install to complete the setup (for verbose output, add the -v flag): $ flutter doctor You should see your Flutter path added to the $PATH Run terminal again and check the $PATH by running $ echo $PATH Once added, save and close the bash_profile. Add this to the existing $PATH variable by using : in between two paths. If you extracted flutter in your Applications folder, your path will be /Applications/flutter/bin. To do this, open your bash profile from your terminal (might need sudo)Īdd your flutter path to the $PATH variable in bash_profile.Į.g. Extract the file in the desired location e.g.How to Install Flutter on MacOS? Minimum System Requirements Click Yes when prompted to install the Dart plugin.Select Browse repositories, select the Flutter plugin and click Install.Open plugin preferences ( File > Settings > Plugins).If you want Flutter to use a different installation of the Android SDK, you must set the ANDROID_HOME environment variable to that installation directory. In the terminal, run the flutter devices command to verify that Flutter recognizes your connected Android device.īy default, Flutter uses the version of the Android SDK where your adb tool is based.If prompted on your device, authorize your computer to access your device. Using a USB cable, plug your phone into your computer.Windows-only: Install the Google USB Driver.Detailed instructions are available in the Android documentation. Enable Developer options and USB debugging on your device.To prepare to run and test your Flutter app on an Android device, you’ll need an Android device running Android 4.1 (API level 16) or higher. This installs the latest Android SDK, Android SDK Platform-Tools, and Android SDK Build-Tools, which are required by Flutter when developing for Android. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |