安卓工作室模拟器参数

7

Android Studio使用以下命令行启动模拟器:

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

如何添加其他选项?我需要指定-http-proxy命令行参数。

3个回答

2

首先,在终端中运行模拟器:

/Users/sergey/Library/Android/sdk/tools/emulator -avd Nexus_5_API_22_x86 -"你需要的所有参数"

然后,在Android Studio中点击运行按钮。选择已经运行的设备。你的应用将会在那里部署。


1

运行 Nexus_5X_Edited_API_23 模拟器并设置代理的命令(获取更多参数此处

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

另外,您可以从命令中列出所有模拟器名称

emulator -list-avds

0

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接