Menu

Install Android SDK Command Line Tools for Flutter (Without Android Studio)
πŸ–ΌοΈ

Install Android SDK Command Line Tools for Flutter (Without Android Studio)

DEV CommunityΒ·Rafli ZockyΒ·6 months ago
#e2eltYmw
Reading 0:00
15s threshold

This topic covers how to install the Android SDK needed for development without using Android Studio.

Steps

Install Java SDK

Choose your JDK version here: https://adoptium.net/temurin/releases (you can choose other web for preferences of installation).

Set environment variables:

# Set JAVA_HOME setx JAVA_HOME "C:\Program Files\Eclipse Adoptium\jdk-17.0.17.10-hotspot"

# Add to PATH setx PATH " %PATH% ; %JAVA_HOME% \bin"

Enter fullscreen mode

Exit fullscreen mode

Verify installation: java -version

Install Android Command Line Tools

Download: https://developer.android.com/studio#command-line-tools-only

Create directory & Extract here: C:\Android\sdk\cmdline-tools\latest

Install Android SDK Components

Open path C:\Android\sdk\cmdline-tools\latest\bin , then run in terminal:

sdkmanager .bat --sdk _root = C :\Android\sdk "platforms;android-36" "build-tools;28.0.3"

Enter fullscreen mode

Exit fullscreen mode

Configure Flutter

# Add to PATH setx PATH " %PATH% ;C:\Flutter\flutter\bin"

# Navigate…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.