First, install android studio
open android studio-- the upper left corner perference-- search Android SDK
to choose a good path
to install check content, can be installed
Then download and install the emulator
You should not select a service to download with google, or it may be run after an error Download
The new version of android studio sdk tools do not download, you need to download put under the sdk directory
reference address:
https://www.androiddevtools.cn/
After installing the above
configuration environment variable
path environment variable path according to their own sdk to add
vim ~/.bash_profile
export ANDROID_HOME=/Users/xiaoma/Library/Android/sdk/platform-tools
export ANDROID_HOME2=/Users/xiaoma/Library/Android/sdk/tools
export ANDROID_NDK_HOME=/Users/xiaoma/Library/Android/sdk/ndk-bundle
export PATH=$ANDROID_HOME:$ANDROID_NDK_HOME:$ANDROID_HOME2:$PATH
:wq
source ~/.bash_profile
emulator -list-avds-- conventional simulator check device
./emulator @ device name (one can check out command)