Monkey Study (1) Environment construction

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.