This guide describes how to install Android Studio on MAC OS and how to run the Android Device Emulator in Android Studio. To run the Android device emulator, you need to enable hardware virtualisation of the virtual machine, so let's connect to the vCloud Director panel.
Let's select the datacenter we need. Let's find the machine we need with MAC operating system. Click the 'Details' button on the virtual machine. In the Hardware section, go to the Compute sub-section and click the Edit button.
Move the slider to“Expose hardware-assisted CPU virtualization to guest OS ”
Install the homebrew third party package manager:
ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)'
The JDK (Java Development Kit) must be installed before installation:
Brew tap AdoptOpenJDK/openjdk
Brew install adoptopenjdk8 --cask
Download the Android Studio from developer.android.com. Once the file has downloaded, run it and wait for the installation to complete.
Launch Android Studio
After the first start, you will see a welcome message. You can choose to send statistics to Google or not, select the appropriate option and click the 'Next' button.
Click “Next”
Select 'Standard' if you don't want to change anything, or 'Custom' if you do.
You will then be prompted to select a theme for your design. Select it and click Next.
You will then be shown your current settings. If you don't want to change anything, press 'Next'. If you want to change something, press the 'Previous' button.
Accept the android-sdk-license
and 'android-sdk-preview-license' Click Finish.
When all components have downloaded, click 'Finish'.
Click new project to create a new project
Select the 'Basic Activity' project template and click 'Next'.
Select the required project parameters and click 'Finish'.
Wait for the project to finish loading. To start the emulator, we need to go to the Device Manager (marked with a red arrow).
Click 'Create device'
Select the device model. I will choose Pixel 2. And press 'Next'.
Next we need to download the operating system for our device. I will download Android 10
Once downloaded, select our operating system and press 'Next'.
Then press "finish".
Once the device has been created, press 'Launch Emulator'. It is marked with a red square in the picture.
Press the 'Power' button.
Wait for our device to boot.