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