让Android Studio 使用上vs的android模拟器

1.在Android Studio中,点Run菜单,然后点Edit Configurations…

2.在Defaults/Android Application,设置Target Device to Show chooser dialog

3.选择Use same device for future launches.8311.standalone-as run debug

另外一种方法添加工具栏按钮打开vs emulator

1.File>Settings>External Tools

2.Click Add1667_standalone-as%20add_png-550x0

3.在Create Tool Dialog,输入名称和描述,然后填写Program 和Parameters

TaskPragramParameters
Quick-launch a particular profileC:\Program Files (x86)\Microsoft Emulator Manager\1.0\emulatorcmd.exe/sku:Android launch /id:[id of profile you want to launch]
Open emulator managerC:\Program Files (x86)\Microsoft Emulator Manager\1.0\emulatormgr.exe/sku:Android

如何获取设备Id?可以通过运行 emulatorcmd.exe /sku:Android list /type:device

0882_standalone-as%20filled%20out_png-550x0

4.在Android Studio 工具栏点右键选择Customize Menus and Toolbars…

4555_standalone-as%20toolbar%20dd_png-550x0

8738_standalone-as%20tb%20add_png-550x0

5557_standalone-as%20tb%20done_png-550x0

如果在调试的时候没有出现运行的模拟器,那么你可以这样修改:

打开注册表,在HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Android SDK Tools下

修改Path键值为你自己的Android SDK路径。

原文地址:http://blogs.msdn.com/b/visualstudioalm/archive/2015/07/20/you-can-now-acquire-the-visual-studio-emulator-for-android-on-its-own.aspx

https://msdn.microsoft.com/en-us/library/mt228282.aspx#ADB

转载于:https://www.cnblogs.com/zjmsky/p/4711328.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值