We are going to configure Flutter by setting the path to the Android SDK.Īfter that, you should get the message. Sdkmanager -licenses Flutter Configuration This happened only because we name the folder that contains our command-line tools as Android, you only have to type sdkmanager -sdk_root=$ tools sdkmanager "system-images android-29 google_apis x86_64" If you want Android 11 just put android-30, and for the older ones, you can downgrade the number. The android-29 means we are getting Android 10 in our emulator. Type the following lines in your terminal. Now our environment variables are created, and to make it work, all we need to do is type the line below in the terminal: I will also move it to my home directory. Move the flutter folder to a new directory. Go to where you downloaded the Flutter package and extract it. # AndroidĮxport PATH=$ANDROID/platform-tools:$PATH # Android SDK Note: If you did not move your Android folder to the home directory, substitute the first line with the path to where you move it. Make sure you don’t put extra spaces and then save your file. This file will keep your environment variables.Īt the end of the file, type, or copy these few lines. Go to your home directory and open the file. We’re going to move the Android folder to another directory. Now, create a new folder and name it Android, and then move the folder you extract to this new folder. Unzip commandlinetools-linux-6514223_latest.zip You can use the ls command to find out the name of the file. Go to the folder where you downloaded the command line tools package and unzip the file. Sudo apt install git Setup Environment Variables Android Note: The latest versions of Java, are showing some problems with the flutter so we will use version 8 because it is the most indicated Then download Java 8 and Git through the terminal. Download Packagesįirst download Flutter and the command-line tools This process will make use of your terminal, so open it up and let’s get started. I will use Ubuntu 20.04 but it will also work with Ubuntu 18.04 or higher. In this article, I will show you how to install Flutter on Ubuntu, Google’s framework for mobile, web, and desktop applications.
0 Comments
Leave a Reply. |