Mac Terminal - How to start Android Virtual Device Manager on CLI?

前端 未结 5 1891
独厮守ぢ
独厮守ぢ 2020-12-15 06:23

I am currently developing a mobile web application and I don\'t have a test device yet so I\'m using the android-emulator to check the site. On my mac, I have installed the

5条回答
  •  太阳男子
    2020-12-15 07:04

    You can start emulator use terminal shell

    emulator -avd  []
    

    options can be special -http-proxy, -dns-server setting. Get more options here

    And to list all avd you can use:

    emulator -list-avds
    

    result like following:

    4.7_WXGA_API_23
    Nexus_5X_Edited_API_23
    

    Example when I start Nexus_5X_Edited_API_23 emulator in OS X 10.11 with proxy setting

    ~/Library/Android/sdk/tools/emulator -netdelay none -netspeed full -avd Nexus_5X_Edited_API_23 -http-proxy http://username:password@local_server:8080
    

提交回复
热议问题