修改环境变量.bash_profile
export ANDROID_HOME=/Users/xin/Library/Android/sdk/platform-tools
export ANDROID_HOME2=/Users/xin/Library/Android/sdk/tools
export ANDROID_NDK_HOME=/Users/xin/Library/Android/sdk/ndk-bundle
export PATH=$ANDROID_HOME:$ANDROID_NDK_HOME:$ANDROID_HOME2:$PATH
source ~/.bash_profile
命令行输入andoid则生效
查看target
image.png创建avd
android create avd -n xxx -t 1
启动avd
emulator -avd Nexus_5_API_26
Nexus_5_API_26 为创建的-n
提供的命令
image.png image.png参考:http://www.360doc.com/content/14/1226/00/17754428_435803239.shtml
网友评论