Android Studio
Android Studio is an IDE developed by Google, built on JetBrainsβ IntelliJ IDEA software and designed specifically for Android development.
https://developer.android.com/studio
Table of contents
π² β Optional
β β Required
π β Pick One
βΉοΈ β Information
IDE
macOS
β Installation
- Visit https://developer.android.com/studio
- Click
Download Android Studio Xxx
- Select
I have read and agree with the above terms and conditions
- Click
Mac with Intel chip
orMac with Apple chip
- Open
android-studio-xxx.x.x-mac.dmg
inDownloads
- Drag
Android Studio
to theApplications
Windows
β Installation
π Chocolatey
choco install androidstudio
Open
Command Prompt
with administrator privilegesπ Setup Wizard
- Visit https://developer.android.com/studio
- Click
Download Android Studio Xxx
- Check
I have read and agree with the above terms and conditions
- Click
Download Android Studio Xxx | xxxx.x.x for Windows
- Open
android-studio-xxx.x.x-windows.exe
inDownloads
- Do installation procedures of Setup Wizard
SDK
β Installation
π Setup Wizard
When opening for the first time after installed Android Studio.
- Open
Android Studio
Welcome
>Next
Install Type
>Next
Verify Settings
>Next
License Agreement
>Accept
licenses >Finish
![]()
Downloading Components
>Finish
π Download
When missing Android SDK Components. That means, you have NOT installed environment yet as above.
β SDK Manager
- Open
Android Studio
- Open
Settings
Navigation route:More Actions
>SDK Manager
β Settings
β SDK Platforms
β
Show Package Details
βAndroid XX.X
Β Β Β βAndroid SDK Platform XX
Β Β Β βSources for Android XX
β SDK Tools
β
Show Package Details
βAndroid SDK Build-Tools XX
Β Β Β βXX.0.0
βAndroid Emulator
βAndroid SDK Platform-Tools
Emulator
β Creating
β Virtual Device Manager
- Open
Android Studio
- Open
Device Manager
Navigation route:More Actions
>Virtual Device Manager
β Virtual Device Configuration
Create Virtual Device
- Select Device >
Next
- Download System Image: Click Download icon
- Agree License:
Accept
>Next
- Complete Requested Actions:
Finish
- Select System Image >
Next
- Verify Configuration >
Finish
- Verify Virtual Devices
Android Home
macOS
β Setting
By default, SDK location is
/Users/{USER}/Library/Android/sdk
.
The environment variables that need to be set in the following:
ANDROID_HOME
- Tools:
- Platform Tools:
adb
- Build Tools:
apksigner
- Command-Line Tools:
avdmanager
,sdkmanager
,apkanalyzer
- Emulator:
emulator
,mksdcard
echo "export ANDROID_HOME=/Users/{USER}/Library/Android/sdk" >> ~/.zshrc echo "export PATH=\$PATH:\$ANDROID_HOME/platform-tools" >> ~/.zshrc echo "export PATH=\$PATH:\$ANDROID_HOME/build-tools/{API_LEVEL}" >> ~/.zshrc echo "export PATH=\$PATH:\$ANDROID_HOME/cmdline-tools/{CMD_TOOLS_VERSION}/bin" >> ~/.zshrc echo "export PATH=\$PATH:\$ANDROID_HOME/emulator" >> ~/.zshrc
β Replace
{USER}
by your current username
β Replace{API_LEVEL}
(E.g.34.0.0
)
β Replace{CMD_TOOLS_VERSION}
(E.g.13.0
)
π² Validation
source ~/.zshrc echo $ANDROID_HOME adb --version
Windows
β Setting
By default, SDK location is
C:\Users\{USER}\AppData\Local\sdk
.
The environment variables that need to be set in the following:
ANDROID_HOME
- Tools:
- Platform Tools:
adb
- Build Tools:
apksigner
- Command-Line Tools:
avdmanager
,sdkmanager
,apkanalyzer
- Emulator:
emulator
,mksdcard
setx /m ANDROID_HOME "C:\Users\{USER}\AppData\Local\sdk" & refreshenv setx /m PATH "%PATH%;%ANDROID_HOME%\platform-tools" & refreshenv setx /m PATH "%PATH%;%ANDROID_HOME%\build-tools\{API_LEVEL}" & refreshenv setx /m PATH "%PATH%;%ANDROID_HOME%\cmdline-tools\{CMD_TOOLS_VERSION}\bin" & refreshenv setx /m PATH "%PATH%;%ANDROID_HOME%\emulator" & refreshenv
β Open
Command Prompt
with administrator privileges
β Replace{USER}
by your current username
β Replace{API_LEVEL}
(E.g.34.0.0
)
β Replace{CMD_TOOLS_VERSION}
(E.g.13.0
)
π² Validation
echo %ANDROID_HOME% adb --version