1. Download JDK, set JDK environment variable
2. Install the Android SDK
The SDK can be shipped to run the Android emulator
When you're done downloading, set the environment variable
The result of my local directory is:
D:\android\android-sdk-windows
Set Environment variables below:
My Computer Right-click menu---> Properties---> Advanced---> Environment variables---> System variables-New ...
Variable name: android_home
Variable Value: D:\android\android-sdk-windows
Locate the PATH variable name, "edit" to add:
Variable name: PATH
Variable value:;%android_home%\platform-tools;%android_home%\tools
Double-click Launch SDK Manager.exe
On the menu bar of the Android SDK Manager, click "Tools"----> "Options ..." to set the relevant code, such as:
It then automatically updates the following content.
If none of the above, priority from: http://www.androiddevtools.cn/, download the SDK Build-tools
Install the appropriate Android version.
After installation, execute "AVD Manager.exe" to create the Android emulator
Click "Create ...."
Click "OK" in the AvD Manager window and click on the "Start ..." button to launch the Android emulator.
Because the new virtual machine has no physical keys, we can use the keyboard keys to operate the Android virtual machine.
Simulator keys |
Keyboard keys |
Back off |
Esc |
Menu |
F1 or PAGE Up |
Begin |
F2 or PAGE Down |
Call |
F3 |
Hanging off |
F4 |
power button |
F7 |
Disable/Enable all networks |
F8 |
Start tracking |
F9 |
Stop tracking |
F10 |
Rotate screen (Horizontal/vertical screen toggle) |
Ctrl+f11 |
Home |
HOME |
Arrow keys Left/top/right/Bottom |
Keypad 4/8/6/2 |
Direction Key Center Key |
Numpad 5 |
Volume down |
keypad minus sign (-) |
Increase volume |
Keypad plus SIGN (+) |
Original from the insect master http://www.cnblogs.com/fnng/p/4560298.html
Appium Environment Build 2-install Android simulator