Python+android+uiautomator of the environment

Source: Internet
Author: User

Python+android+uiautomator the environment to build

Python

Download the appropriate version of the system and install it, tick the path to add it when installing

Verify: Open cmd input python under Windows

The following interface appears to indicate successful installation

Android

Download installation path: HTTP://TOOLS.ANDROID-STUDIO.ORG/INDEX.PHP/SDK

Download the installation JDK first

JDK Installation Documentation: http://jingyan.baidu.com/article/6dad5075d1dc40a123e36ea3.html

Verify:

cmd-> input Java-version

Post-Install SDK

Note: If there is no platform under the SDK folder, go to the Tools folder and click Android and select the desired package.

Add the SDK tools and platform-tools paths to path

Verify: cmd-"input adb

Uiautomator

Windows cmd Input command: Pip install Uiautomator

Verify:

1. Mobile Phone and computer connection

2. Open the Tools folder under the SDK installation path there is a uiautomatorviewer

(If you open the question of the ADB, it may be because the port is occupied, because the ADB port is 4584, I was previously because 360 mobile phone assistant occupied this port, online can search for the relevant solution, I was directly uninstalled 360)

The code for this diagram is not, hahaha.

Python+android+uiautomator of the environment

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.