💡 Open PowerShell as Administrator and run:
New-Item -ItemType Directory -Force -Path C:\tools\Android\Sdk\cmdline-tools\latest, C:\tools\flutter, C:\tools\JavaThis creates all required folders at once. -Force skips errors if folders already exist.
- Download from → Android Command Line Tools
- Open the zip → go inside the
cmdline-toolsfolder - Copy all contents (
bin,lib,NOTICE.txt,source.properties) into:C:\tools\Android\Sdk\cmdline-tools\latest
- Download from → Flutter Manual Install
- Open the zip → copy the
flutterfolder contents into:C:\tools\flutter
- Download from → Adoptium JDK 17
- Extract the zip → copy the
jdk-17.x.xfolder into:Result should look likeC:\tools\Java\C:\tools\Java\jdk-17.0.15(version number may differ)
C:\tools\
├── Android\
│ └── Sdk\
│ ├── cmdline-tools\
│ │ └── latest\
│ │ ├── bin\
│ │ ├── lib\
│ │ ├── NOTICE.txt
│ │ └── source.properties
│ └── platform-tools\ ← created automatically later
├── flutter\
│ └── bin\
└── Java\
└── jdk-17.0.15\ ← your version number may differ
└── bin\
💡 How to open Environment Variables:
- Press
Win + S→ search "Environment Variables"- Click "Edit the system environment variables"
- Click "Environment Variables..." button at the bottom
- Under "System variables" click "New"
Add these two variables:
| Variable | Value |
|---|---|
ANDROID_HOME |
C:\tools\Android\Sdk |
JAVA_HOME |
C:\tools\Java\jdk-17.0.15 ← replace with your exact folder name |
click OK 3 times
💡 How to add to PATH:
- In the same Environment Variables window
- Under "System variables" find and select "Path" → click "Edit"
- Click "New" and add each line below one by one
C:\tools\Android\Sdk\cmdline-tools\latest\bin
C:\tools\Android\Sdk\platform-tools
C:\tools\flutter\bin
C:\tools\Java\jdk-17.0.15\bin ← replace with your exact folder name
click OK 3 times
💡 Close and reopen your terminal so the PATH changes take effect, then run:
sdkmanager --install "platform-tools" "platforms;android-36" "build-tools;36.0.0"
sdkmanager --licensesWhen prompted with
Accept? (y/N)→ typeyand press Enter for each one.
flutter doctor✅ Everything should pass except Android Studio — that's expected since we didn't install it.
Done! 🎉