![Learning Android Game Development](https://wfqqreader-1252317822.image.myqcloud.com/cover/187/36701187/b_36701187.jpg)
Setting up the emulator
Click on the green play icon to start executing your first program and set up your emulator:
![](https://epubservercos.yuewen.com/B488AC/19470409301646606/epubprivate/OEBPS/Images/B05066_01_22.png?sign=1738851629-oLqvCg8W0evPhPX8IEk6kP9RgQfKUhYD-0-46f25b447bcefc0abdb7a6a451cb7efa)
Now, click on Create New Virtual Device and make sure that Use same selection for future launches is checked:
![](https://epubservercos.yuewen.com/B488AC/19470409301646606/epubprivate/OEBPS/Images/B05066_02_11.png?sign=1738851629-aNFli9YLt9nB5xTYBBx940td641VWBkh-0-9f247a3d0f0f5383e361dd15f73c4413)
Select a device of your choice, and click on Next:
Select Nougat with API Level 24, and click on Next:
Give a name to your emulator (optional) in the AVD Name field and select a Portrait -Startup orientation and click on Finish:
You can see that the latest device that you created will now appear in the list of Available Virtual Devices; select it and click on OK:
Click on OK after selecting your device
ONLY FOR WINDOWS SYSTEMS
Now you may get the following message, as seen in the screenshot:
![](https://epubservercos.yuewen.com/B488AC/19470409301646606/epubprivate/OEBPS/Images/B05066_02_16.png?sign=1738851629-BNQ1JlTndUSLGaju9IChxXdDtV7KkZZS-0-aefdd3fe797528def0b993761a2bc5c2)
If you get an ONLY FOR WINDOWS SYSTEMS message, then follow these steps; otherwise, you can skip this part:
- Enter BIOS by restarting your computer and pressing Delete, Esc, or F1 depending on your system.
- Go to Processor/Chipset settings.
- Enable Virtualization Technology.
This can happen due to a couple of problems. HAXM problems often occur because of Intel chipsets. The Intel Hardware Accelerated Execution Manager (Intel® HAXM) is a hardware-assisted virtualization engine (hypervisor) that uses Intel Virtualization Technology (Intel® VT) to speed up Android app emulation on a host machine. In combination with Android x86 emulator images provided by Intel and the official Android SDK Manager, HAXM allows for faster Android emulation on Intel VT-enabled systems:
![](https://epubservercos.yuewen.com/B488AC/19470409301646606/epubprivate/OEBPS/Images/B05066_01_29.png?sign=1738851629-jvvzGyp26d04Uhyiy7xQEpVPoz6kDhwZ-0-950ea6879237127e063a09fd4e0564c9)
Once you do this, a small window will open below the screen, and your build process will start. Wait for some time and your emulator will open up:
![](https://epubservercos.yuewen.com/B488AC/19470409301646606/epubprivate/OEBPS/Images/B05066_02_18.png?sign=1738851629-ZIT4sN8z1HqLx2aFP04WgdxVyEzc2Jr1-0-6a90ab966918892e0f862cd1c2040684)
Congratulations! Your Hello World! program is running successfully.
Give yourself a pat on the back. You have now successfully executed your first program.