Setting up Android Studio and Emulator
The below procedure is also demonstrated in this video (some steps may be slightly different since video is from 2020)
1. Install Android Studio
- Download and Install Android Studio from https://developer.android.com/studio/install .
- During install, follow the default options.
- Android virtual devices rely on virtualization technology of your CPU. It may be disabled on your machine. You can check if it's enabled on Windows, by for example opening Task Manager (Ctrl+Shift+Esc) -> Performance -> Click on CPU, and see "Virtualization" option displays Enabled.
- If it's disabled, you have to boot into the BIOS of your machine and enable it in BIOS settings
2. Create an Android Virtual Device ( Emulator )
- Once setup is finished, launch Android Studio and open the Android Virtual Device Manager (AVD) as shown below:
- Create a new virtual device (default option is OK), click Next, and select a System Image, you will need to download it. Choose API Level 33:
- You may see errors/warnings about missing Intel HAXM, follow instructions to install it. If you have and AMD processor, you need to install the corresponding Hypervisor Driver instead
- If you have errors installing Intel HAXM on Windows, also make sure Hyper-V is disabled
3. Create a new project
The first time you create a new project, various Gradle-related files & dependencies are downloaded. So the very first project build will be slow.
- Create a new Project with an Empty / Blank activity.
- If your managed to create the virtual device, try running the project, you should see a Hello World! App launch after the project is built.