Configuration Command MAC androidSDK & cranking simulator (Emulator)

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
Configuration Command MAC androidSDK & cranking simulator (Emulator)
Configuration Command MAC androidSDK & cranking simulator (Emulator)

Then download and install the emulator
Configuration Command MAC androidSDK & cranking simulator (Emulator)
Configuration Command MAC androidSDK & cranking simulator (Emulator)

You should not select a service to download with google, or it may be run after an error Download
Configuration Command MAC androidSDK & cranking simulator (Emulator)

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/
Configuration Command MAC androidSDK & cranking simulator (Emulator)

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)

Guess you like

Origin blog.51cto.com/xdtesting/2485560