Visual Studio Emulator for Android application is a stand-alone version of the Android emulator tool released by Microsoft, it is said that the performance of Visual Studio Emulator for Android emulator is better than Google's own It's much faster, and the function is not bad, I have to admire Microsoft, but the use of this application requires hyper-v support, how to use Win10 Android simulator? Below is a detailed tutorial on using the Win10 Android emulator.
first, open the Hyper-V virtualization technology (which has been opened ignore);
1 Check Control Panel->Uninstaller->Start or Shut Down Windows Features->Hyper-V->OK
After downloading, it is a 40M vs_emulatorsetup.exe file, which does not contain the image file of Android Simulator. When installing, it will download the x86 image of API 19 (Andorid 4.4) online by default. You can also download other ones separately. API xx version, in addition, Visual Studio Emulator for Android is not dependent on Visual Studio, which means that it can be installed separately. Android Studio uses adb as a bridge to connect Visual Studio Emulator for Android.
I will not list the installation steps, remember to reboot after installation (it needs to add yourself to the administrator group of Hyper-V Administrators).
Open the Visual Studio Emulator for Android after the installation restarts, as shown below:
If you start the emulator, it will automatically create the corresponding x86 in Hyper-V. Android virtual machine, the author's as follows:
2. Set up Andorid Studio to use these simulators
Open Android Studio> Run > Edit Configurations > Defaults /Android On the Target /Device tab of the Application /General tab, check Show chooser dialog and Use same device for future launches . Remember not to forget to apply Apply and OK. As shown below:
3. Add a shortcut button for launching emulator for Android Studio
Although the emulator can be launched in the manager window of Visual Studio Emulator for Android, but each time It’s cumbersome to go inside and open, so we add a shortcut button for Android Studio to launch Visual Studio Emulator for Android.
3.1 Configuring External Tools
Opening File > Settings > External Tools > Add :
Name: Just write it, it's easy for you to recognize it. The author is VS Emulator (4.4 API 19).
Program: Fill in the absolute path of emulatoecmd.exe in the Visual Studio Emulator for Android installation directory, use it to start the emulator. The author is C:\\Program Files (x86)\\Microsoft Emulator Manager\\1.0\\emulatorcmd.exe.
Parameters: add the parameters to start the emulator, /sku: Android is the emulator that opens Android, /id: the Guid behind is the unique number of the emulator, the general meaning is to specify which Android to launch Simulator. The id can be obtained by emulatorcmd.exe /sku:Android list /type:device as follows:
Working Directory: Specify the working directory, which should be filled in casually. The author is $ProjectFileDir$.
3.2 Add button to Toolbar
Right click on the toolbar and select Customize Menus and Toolbars. Then navigate to Main Toolbar > Add After > in the pop-up panel, find External tool > VS Emulator (4.4 API 19) and press OK. As follows:
Then click on our newly added button, you can start the Android emulator:
4. Add a shortcut button for the Contect emulator for Android Studio < Br>
The button in the third section just starts the emulator, but Andorid Studio can't connect to the emulator. Here you need to use the adb command to connect to the emulator you just started.
4.1 Configuring External Tools
The same is to add a shortcut button, the steps are the same as the third part, but the parameters are different, here I only list the parameters:
Name: Just write it, it's easy for you to recognize it. The author is adb Connect (VS Emulator).
Program: Fill in the absolute path of adb.exe, the author is D:\\_android\\sdk\\platform-tools\\adb.exe.
Parameters: Add adb.exe parameters, connect ip: 5555; the author is 192.168.2.233:5555. Ip can be viewed in wifi by opening the emulator, or in the network of the emulator settings
Working Directory: Specify the working directory, which should be filled in casually. The author is $ProjectFileDir$.
4.2 Add button to Toolbar
The steps are the same as 3.2, which will not be explained here. Stick a picture:
5. Debug Android App with Visual Studio Emulator for Android
Press the Run button (green arrow...) to pop up the selection of Android device Box:
OK, you're done:
6. Further improvement
Before you debug, you need to click the button to start the simulator, and so on. Start and then click the button of the contect simulator, then you can click run debugging, and it is very cumbersome.
Let's configure the command to be executed before the run, let the run button do all three things!
Open the BeforeLaunch node of the Run > Edit Configurations > Defaults /Android Application /Emulator tab, add the two External Tools we just created here, remember not to forget to apply Apply and OK, the order is as follows :
The above is the method used by this small series for the Windows 10 Android emulator. I hope it can help everyone. If you still have questions, you can leave us a message. We will do our best to answer for you. Thank you for your continued support.
In Win10 RS2 Preview 14931, Microsoft joined the new Group Policy project to prevent users from manu
Aero Glass is the most obvious imprint of Windows Vista, Windows 7 era, but Microsoft removed this e
The computer gave me a surprise today. When I opened the browser, I felt that the font was weird and
every time it is turned on. Friends who have used WinXP system know that whenever the computer is u
After WinXP enters the system, the black screen processing method (more detailed)
Win8 transfer index file Windows.edb to non-system disk method
Win7 users can upgrade to Win10 Preview via system update for only $30?
How Windows 7 systems merge or delete network locations in network connections
Win7 system boot blue screen prompt error code 0x00000024 fault analysis and solution
Win10 startup is very slow, what should I do? Win10 startup acceleration full tutorial
Windows 10 10158 Preview Releases New Microsoft WiFi New Application
How to cancel win8 lock screen to improve boot speed
Win10 font fuzzy display is not clear how to adjust?
Win10 technology preview build 9926 ordinary users are suitable for download and installation?
CentOS 6.x uses yum to install nginx environment
How to set the default browser win7?
Windows 7 features: Productivity - Windows Touch Feature
Slimming Windows XP System Installation CD
Windows 8.1 will automatically shut down when idle, it is really unattended
Windows 10 can not shut down or restart how to do
Microsoft Win10 Creator Update 15002 Preview Image Download Leaks New Features at
What if Windows 7 can't "sleep" properly?
Win8 system regid.1991 06.com.microsoft folder can be deleted?