0% found this document useful (0 votes)
10 views

Install Emulator From CMD

The document provides steps to set up the Android SDK, Java JDK, download an Android platform system image, create an Android Virtual Device (AVD), and run the Android emulator on Windows. It includes downloading tools, installing packages, configuring the AVD, and running the emulator.

Uploaded by

Cartoons
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Install Emulator From CMD

The document provides steps to set up the Android SDK, Java JDK, download an Android platform system image, create an Android Virtual Device (AVD), and run the Android emulator on Windows. It includes downloading tools, installing packages, configuring the AVD, and running the emulator.

Uploaded by

Cartoons
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Prerequisites

• Android SDK

• Java 8 JDK

• Windows 10/11

Download the Android SDK

• Download the Android command line tools in this


page https://developer.android.com/studio (Download options -> Command
line tools only)
• Create new folder, e.g. C:\android-sdk

• Create new folders cmdline-tools, platforms and platform-tools inside android-


sdk

• Create new folder tools inside cmdline-tools

• Open the zip downloaded and extract the folders bin, lib and the
files NOTICE, source.properties inside C:\android-sdk\cmdline-tools\tools
Install Java 8 JDK

• Download and install the Java 8


JDK https://download.oracle.com/java/18/archive/jdk-18.0.2_windows-
x64_bin.exe

Download the Android platform

• Open the windows terminal as admin and type

cd C:\android-sdk\cmdline-tools\tools\bin

• You can now check the list of all packages using

sdkmanager --list

• I will use system-images;android-33;google_apis;x86_64 (there are also images


with the Google Play Store)

• Use this command in order to download the system image

sdkmanager --install system-images;android-33;google_apis;x86_64

• Accept all the licenses


• Install the platform-tools using
sdkmanager "platform-tools" "platforms;android-33"

Create the AVD device

• In the Windows terminal use this command to create a new AVD device

avdmanager create avd --name android33 --package "system-


images;android-33;google_apis;x86_64"

• At this point if you receive errors you can try to enable the Virtualization
Technology option in your BIOS (SVM Mode if you have AMD cpu) and install
the Intel
HAXM https://github.com/intel/haxm/releases/download/v7.7.1/haxm-
windows_v7_7_1.zip

• Will be asked if you want to create a custom hardware profile, just press enter

Run the Android Emulator

• In the Windows terminal navigate to

cd C:\android-sdk\emulator

• To open the emulator type (in the -m parameter you can give a custom
amount of RAM size)

emulator –avd android33 -qemu -m 3000

Create a shortcut in order to pin the emulator to the taskbar

• In the File explorer go inside C:\android-sdk\emulator

• Right click on emulator.exe -> Create shortcut


• Then right click on the shortcut created -> Properties

• In the target type (in the -m parameter you can give a custom amount of RAM
size)

C:\android-sdk\emulator\emulator.exe –avd android33 -qemu -m


3000

• Save and right click again -> Pin to taskbar

• At this point the emulator icon is ready to be opened in the Windows taskbar

What’s next

• Eventually you edit the Emulator proprieties by editing the config file
in C:\Users\yourUser\.android\avd\android33.avd (I suggest to
change hw.camera.back=virtualscene, hw.keyboard =
yes and disk.dataPartition.size=1800M)

You might also like