Monkeyrunner Environment configuration steps (1. Install jdk,2. Install python,3. Install Android SDK)

Source: Internet
Author: User

Preface : Need to install JDK, Python, Android SDK

First step: Installation and configuration of JDK

JDK:http://www.oracle.com/technetwork/java/javase/downloads/jdk-netbeans-jsp-142931.html

Configuring Environment variables

In system variables → new system variable

Variable name: java_home

Variable value (fill in the path of the JDK installation): C:\Program files\java\jdk1.8.0_161

Re-create the system variable

Variable name: CLASSPATH

Variable value:.; %java_home%\lib;%java_home%\lib\tools.jar

Click OK.

Locate the system variable path, click "Edit" and enter "%java_home%\bin;%java_home%\jre\bin" at the end of the variable value. (If there is no value at the end of the original path variable, enter it first, and then enter the contents above)

At this point, the JDK environment is configured. Enter Command "Java", "Javac", "java-version" in CMD to see if the configuration was successful

Step Two: Installation and configuration of Python

python download URL : https://www.python.org/downloads/

python environment configuration : My installation path is "C:\Python27"

In environment variables, under System variables, select Path, click Edit, enter "C:\Python27" at the end of the variable value (if there is no ";" in the value of the original Path variable, enter ";" before entering)

Now that the Python installation is complete, the cmd input "python" can be checked, (if the 3.5 version installed here, need to enter the Python3, in general, people enter "Python")

Step three: Installation and configuration of the Andriod SDK

SDK Download URL : http://www.androiddevtools.cn/, note Depending on the computer's operating system to select the version

I download the compressed package directly, do not need to install.

After the installation package decompression, see if there is "Platform-tools" in the file, if none, then downloaded in the above URL, extracted into the directory

andriod SDK Environment configuration :

In system variables, create a new "android_home" variable, and the value of the variable is "D:\android-sdk_r24.4.1-windows\android-sdk-windows" (This is my SDK installation path)

Under "System Variables", select "Path", click "Edit" and enter "%android_home%\platform-tools;%android_home%\tools" at the end of the variable value. (If there is no ";" at the end of the original path variable value, enter ";" before entering)

Since then, the SDK environment configuration is complete, enter "adb" in cmd,

Fourth step: Run Monkeyrunner, connect the simulator or mobile device

Enter "Monkeyrunner" in Cmd, as shown, to prove that the environment has been built successfully

Connect your mobile device: Connect your phone to your computer, turn on "developer mode" and install the driver. Then run the in CMD in the statement

Monkeyrunner Environment configuration steps (1. Install jdk,2. Install python,3. Install Android SDK)

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.