This is the step-by-step note that answering the question: How to install and launch Android emulator without installing Android Studio itself.
Download and install JDK
Open Command Prompt (
cmdand press Enter) or use any other terminal you like. For me path to JDK is
E:\Program Files\Java\jdk1.8.0_251. Execute the following:
setx JAVA_HOME "E:\Program Files\Java\jdk1.8.0_251"
Download and install Intel Hardware Accelerated Execution Manager (HAXM) (you also need to switch off Hyper-V feature and enable Virtualization in BIOS for successful installation).
Download Command-Line-Tools: Go to Downloads page , scroll down to "Command line tools only" section and download the archive with tools.
Create the following folder structure and go inside:
mkdir Android\cmdline-tools cd Android\cmdline-tools
tar -xf C:\Users\a\Downloads\commandlinetools-win-6200805_latest.zip
Starting from Android SDK Command-line Tools 1.0.0 (6200805), in contrast to Android SDK 26.1.1 (4333796), the tools directory hierarchy has been changed. Previously it was placed right inside ANDROID_HOME, now it's still named as tools (the only thing you'll get after unpacking the downloaded commandlinetools zip file), but differently, you have to place it inside a directory called cmdline-tools on your own.
The structure is supposed to be the following:
├── cmdline-tools └── tools ├── bin ├── lib ├── NOTICE.txt └── source.properties
Set ANDROID_HOME environment variable:
setx ANDROID_HOME %localappdata%\Android
Create new entry in Path environment variable:
setx path "%PATH%;%ANDROID_HOME%\cmdline-tools\tools\bin" /m
Note: you'll probably need to restart
cmdin order the changes take effect.
The next command allows us to see the list of available packages:
We need to install such packages like
*means the version:
sdkmanager "platforms;android-29" "system-images;android-29;google_apis;x86_64" "platform-tools"
Next we have to accept a bunch of licenses. Type the next command and answer
yto each question:
Now we are ready to create new virtual device:
avdmanager create avd -n test_avd_29 -k "system-images;android-29;google_apis;x86_64"
To see the list of virtual devices just type:
avdmanager list avd
Last but not least thing is launching:
emulator -avd test_avd_29