Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio emulator parameters

Android studio launches emulator with such command line:

/Users/sergey/Library/Android/sdk/tools/emulator -avd Nexus_5_API_22_x86 -netspeed full -netdelay none

How do I add additional options? I need to specify -http-proxy command line parameter

like image 531
sergey Avatar asked Sep 17 '15 11:09

sergey


2 Answers

First, run the emulator from the terminal:

/Users/sergey/Library/Android/sdk/tools/emulator -avd Nexus_5_API_22_x86 -"all parameters you need"

Then, clic on the run button in Android Studio. Select your device, that is already running. Your app will deploy there.

like image 145
Matías Sebastián Ávalos Avatar answered Oct 16 '22 20:10

Matías Sebastián Ávalos


The command to run start Nexus_5X_Edited_API_23 emulator with proxy setting (get more params here)

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

also You can list all emulators name from command

emulator -list-avds
like image 45
larva Avatar answered Oct 16 '22 20:10

larva