How to use Win10 Android simulator? Windows 10 Android emulator use tutorial detailed (graphic)

  

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.

Software Name:
visual studio emulator for android Android emulator v1.0.5 English official installation version
Software size:
38.2MB
updated:
2015-07-22


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.

Copyright © Windows knowledge All Rights Reserved