
Flutter install android#
If you’ve got an Android device to hand, connect it to your machine with USB debugging mode enabled to activate Android Studio’s on-device debugging. This will default to running the web version of your project in Chrome. Run your application by pressing the green play button in the toolbar or using the Shift+F10 keyboard shortcut. The android, ios and web directories in your project folder store platform-specific content such as manifest files, icons, and toolchain configurations. You can find the default Flutter sample app’s source file in lib/main.dart.
Flutter install code#
The creation process may take a few seconds while Android Studio prepares the project, downloads any extra dependencies, and indexes the initial source to discover code symbols. Once you’re done configuring your project, click the “Finish” button to create it. You can enable Linux desktop support by running the flutter config -enable-linux-desktop command in your terminal and restarting Android Studio. Windows and macOS are not supported when you’re developing on Linux. At this stage, only iOS, Android, and Web will be available. You should only change this if you already know you need to.įinally use the “Platforms” checkbox to select the operating systems you want to target. These define the languages you’ll use to write platform-specific native components. You can usually leave the Android and iOS languages at their defaults of Kotlin and Swift respectively. Under Organization, supply a reverse DNS-notated namespace for your app, such as. The project name must consist of alphanumeric lowercase characters and underscores. Name your project and choose a storage location on the next page. Try using the searchbar if you don’t see it. The Flutter plugin is usually visible near the top of the Featured list. On the Android Studio homescreen, click the Plugins link in the left menu.

It’s time to get Flutter working with Android Studio. This downloads platform-specific binaries for iOS and Android ahead of time, reducing the compile duration of your first build. An optional step beforehand is running flutter precache which can accelerate future builds. Once flutter doctor shows that “Flutter” and “Android Toolchain” are working, you’re ready to move back to Android Studio. One common warning is “Android license status unknown” – this can be rectified by running flutter doctor -android-licenses to accept the SDK’s license terms. If any of the checks fails, use the provided URLs to debug what’s wrong. This command will confirm you’ve got the Android SDK installed so you can build and deploy your Flutter apps. Next run flutter doctor to check the SDK’s ready to use.
Flutter install full#
The command will download the full Dart and Flutter SDKs and then build the main CLI utility. Run flutter now to complete the SDK setup. This will let you use the flutter command in your terminal.

You can switch between versions by checking out to different branches.Ĭhoose where to locate the SDK on your system, then use Git to download the latest stable release: mkdir ~/.flutter-sdkĪdd the bin directory within the SDK to your path. As a Linux user, it’s easiest to get the SDK directly from the Git repository. The Flutter SDK should be added to your system outside of Android Studio. Once it’s done, Android Studio will launch. This may take a while depending on the quality of your internet connection. If everything looks good, click the “Next” button to begin the download.
Flutter install install#
Once you reach the “Verify Settings” screen, confirm that Android Studio is going to install the SDK, JDK, Emulator, Build Tools, and Platform Tools. These will be useful later when it comes to debugging Flutter apps. This will automatically download a recent Android Emulator release and the Android build tools. For the purposes of this tutorial, you can accept the defaults and create a “Standard” installation. The trailing ampersand means you’ll be able to close your shell and keep using Android Studio.įollow the first run setup wizard to configure your IDE.
