To the Android World Small white person son, get a monkeyrunner environment Chi began popping of the cost of the most days of hard, no way, because is really ignorant of this aspect, the noun is a Baidu Cai Lue understand one or two, since so hard to fix, how also have to record down, lest next time won't.
Monkeyrunner is the Android SDK comes with the test tool, build monkeyrunner environment is actually need to install an Android SDK, of course, have to have Java environment JDK and Python environment, here only to record the history of the tears I installed the SDK today
1. Installing the SDK
First spit Groove down the Detour, go online search monkeyrunner environment building, give a bunch of documents are mentioned in the Android official website, http://developer.android.com/sdk/index.html# Download, OK, because I am really not good at FQ, exhausted all kinds of methods can not be downloaded successfully, after the 360 software Butler search Android SDK, downloaded an SDK tools for Android Studio, no culture really scary, After installation, enter the tools directory input Monkeyrunner, prompt the Use SDK Manager and check if Android SDK Platform-tools is installed, online search answer, say is no add ring Environment variables, try to add environmental variables only found in the installation directory of the basic wood platform-tools, how broken, how broken, forum, Q Group, all kinds of consulting, finally understand, SDK package is mistaken, although did not understand why wrong, but ultimately is on the right path
Baidu search online to download Google Android SDK, download and unzip, there are three folders, because JDK and eclipse I have, so directly copy the SDK to the directory I specified
2. Open cmd, enter Sdk\tools directory, enter Monkeyrunner,ok
3. Configure Environment variables
Now it's okay to enter Monkeyrunner in the tools directory, but leaving this directory will prompt you to not find the command, so you can add an environment variable to solve the problem.
environment variable-system variable, add a new variable name Android, variable value D:\Program files\android\sdk\tools;d:\program files\android\sdk\platform-tools;
Open the PATH variable in the system variable and append the above two paths to the back save
4. Open cmd, enter Monkeyrunner,ok in current directory
Monkeyrunner Environment Construction