Environment Construction:
The monkey program comes with an Android system, requires the JDK to be configured on the J2SE platform, and also configures the SDK for the Android platform.
1) Download and configure the JDK
Download and install the JDK procedure omitted ...
Configuring the JDK environment variable, I'm using JDK1.7, configure environment variables after installing JDK "computer → properties → advanced system settings → advanced → environment variables".
System variables → new java_home variable, variable value fill in the JDK installation directory (I am D:\jdk1.7.0_15).
System variable → find Path variable → edit, enter%java_home%\bin;%java_home%\jre\bin at the end of the variable value;
(Note that the original path of the variable value at the end of there is no; number, if not, first enter; number and then enter the above code)
system variable → new CLASSPATH variable, variable value filled in.; %java_home%\lib;%java_home%\lib\tools.jar (Note that there is a point in the front)
Verify that the configuration is running successfully cmd input java-version (there are spaces between Java and-version)
If the version information is displayed, the installation and configuration are successful.
2) Download and configure the SDK
Download and install the JDK procedure omitted ...
Configure SDK environment variables, system variables → find path variable → edit, enter the SDK installation path at the end of the variable value (E:\sdk\tools;);
Verify that the configuration is successfully run CMD input adb to see if it can run successfully
Android Debug Bridge (Android Debug bridge,adb) tool, as the name implies, the tool is primarily to debug the bridging role
For example, by executing the ADB tools command to access the emulator or physical machine, uploading files to the simulator or physical machine, or downloading files, etc., the Monkey tool is executed on the ADB command.
Monkey Study (1) Environment construction