1. Download and install HBuilderX (download app development version)
The download is a compressed package, you can use it after decompression
Second, download the simulator
Third, connect the Android emulator
Under normal circumstances, when using the emulator for the first time, the emulator cannot be detected in HBuilderX, and the adb command needs to be used
1. Settings before using the adb command
(1). Find the directory of adb.exe, usually in the HBuilderX installation directory
(2). Configure environment variables: put the path where adb.exe is located in path
2. Enter the adb command in the console
(1) Run cmd (win+r)
(2) Check the version information of adb: adb version
(3) Check the adb connection device: adb devices
List of devices attached device list
If there is no such line of information, you may need to solve adb related problems
Reference address: http://www.jianshu.com/p/5e9ead0d3d63
(4) Connect the emulator to the computer: adb cnnect 127.0,0.1:21503
Step 1: In the Microvirt\MEmu directory under the installation directory of the Xiaoyao touch machine, open the command
Click on the address bar, enter cmd and press Enter
Step 2: Execute the command: adb connect127.0.0:21503
The default port number of MEmu Emulator is 21503
(5) View adb connected devices: adb devices
Fourth, check the connection of the simulator device
The connection is successful and it is found that when you want to use the emulator for a while, you cannot search for the emulator, just re-execute it in HBuilder