![]() 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. 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. 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.
0 Comments
Leave a Reply. |