About Us Services Blog Contact Us Learn

Flutter™ Installation Without Android Studio™

When developing with Flutter™, you typically install Android Studio™ as part of the setup process. However, if you want a lightweight alternative, you can install Flutter™ with only the Android command-line tools. This guide walks you through the steps to set up Flutter™ on Windows without Android Studio™.

Step 1: Install Android Command-Line Tools

  1. Download Command-Line Tools:

    Download the Android SDK Command-Line Tools from the Android Developer website.

  2. Extract the downloaded zip file:

    Extract it to a directory, e.g., C:\Users\<User Name>\AppData\Local\Android\Sdk\cmdline-tools.

  3. Set up SDK directories:
    • Inside the cmdline-tools folder, create a subfolder named latest.
    • Move the extracted files and folders into this latest folder. The structure should look like:
    C:\Users\<User Name>\AppData\Local\Android\Sdk\cmdline-tools\latest\bin

Step 2: Install Required SDK Components

  1. Using the command-line tool:

    Open a Command Prompt and navigate to the cmdline-tools\latest\bin directory:

    C:\Users\<User Name>\AppData\Local\Android\Sdk\cmdline-tools\latest\bin
  2. Accept the SDK license agreements:
    sdkmanager --licenses
  3. Install the required components:
    sdkmanager "platform-tools" "build-tools;34.0.0" "platforms;android-35"

Step 3: Set Environment Variables

  1. Open the Environment Variables settings:
    • Press Win + R, type sysdm.cpl, and hit Enter.
    • Go to the Advanced tab and click Environment Variables.
  2. Add or update the following variables:
    • ANDROID_HOME:

      Path: C:\Users\<User Name>\AppData\Local\Android\Sdk

    • Update the Path variable to include:
    %ANDROID_HOME%\cmdline-tools\latest\bin
    %ANDROID_HOME%\platform-tools
  3. Verify the setup:
    adb --version

Step 4: Configure Flutter™

  1. Download and install the latest Flutter™ SDK:

    Extract the zip file to a directory, e.g., C:\src\flutter.

  2. Set environment variables:
    • Press Win + R, type sysdm.cpl, and hit Enter.
    • Go to the Advanced tab and click Environment Variables.
    • Add FLUTTER_HOME with value C:\src\flutter.
    • Update the Path variable to include:
    %FLUTTER_HOME%\bin
  3. Verify the Flutter™ installation:
    flutter doctor -v
  4. Resolve issues if any:

    If any issues are listed under the Android toolchain section, ensure the ANDROID_HOME path and tools are correctly configured.

Copied to clipboard!

Recent Posts

Clean Architecture & Flutter

Clean Architecture & Flutter

Building scalable and maintainable applications is one of the most important tasks for any developer. Clean Architecture is a proven design pattern that helps achieve this by separating concerns into different layers. In this post, we’ll explore how Clean Architecture works, its benefits, and how it can be applied to a Flutter™ application. We will also go over the main components:

Flutter™ Installation Without Android Studio™

Flutter™ Installation Without Android Studio™

When developing with Flutter™, you typically install Android Studio™ as part of the setup process. However, if you want a lightweight alternative, you can install Flutter™ with only the Android command-line tools. This guide walks you through the steps to set up Flutter™ on Windows without Android Studio™. Step 1: Install Android Command-Line Tools

No comments:

Post a Comment