Mac OS配置ionic环境和开启android虚拟机

2018-01-08  本文已影响0人  chenjiangtao
android studio
npm install -g ionic cordova
npm install --save ionic3-index-list
npm install --save ion-multi-picker
1920*1080
id: 9 or "Nexus 5X"
id: 17 or "pixel" 
avdmanager create avd -n test -k "system-images;android-25;google_apis;x86" -d 9 -f

1280*720
id: 5 or "Galaxy Nexus"
avdmanager create avd -n test -k "system-images;android-25;google_apis;x86" -d 5 -f

854*480
id: 32 or "5.4in FWVGA"
avdmanager create avd -n test -k "system-images;android-25;google_apis;x86" -d 32 -f

id: 19 or "pixel_xl
avdmanager create avd -n test -k "system-images;android-25;google_apis;x86" -d 19 -f
export ANDROID_HOME="/Users/jiangtao/Library/Android/sdk"
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools
ionic cordova platform rm android
ionic cordova platform add android
ionic cordova emulate android —livereload
 ionic cordova emulate android --target="Pixel_XL_API_27"  —livereload

参考:http://chenjiangtao.com/blog/2017/ionic.html

上一篇下一篇

猜你喜欢

热点阅读