There is an article on the Internet Shangdong_chu user wrote about how to configure Monkeyrunner on Eclipse, did a very good description, but after my experiment in my environment encountered the Jython parser error problem, and the article is missing Pydev installation steps, So here's a new article on how to build up the Monkeyrunner development environment on Eclipse, in my case.
1. Environment
First you need to describe the environment that I configured, because I am not sure if there are any slight differences in the configuration of other environments.
- Jython jar package versions and paths provided by the Android SDK
2. Pydev plug-in installation steps:
- Open Eclipse:help>>install New software ...
- Work with input : Http://pydev.org/updates
- Select Pydev to install according to the wizard
3. Pydev Configuring the Jython development environment do not rush to install Jython's interpreter at this time, because in my experience we will encounter the following error during installation: "Error:python stdlib not found or Stdlib found without. py files"
- step 1: Find the Jython parser jar package and unzip it (the jar package should be available in your SDK \tools\lib found below)
-
- Step 3: Open windows>>references and navigate to Jython interpreter
- Step 4: Click on the "New" button and select the Jython jar package below sdk/tools/lib/, then click the OK button
- After installing the Preferrences interface should be as follows, click OK to complete the Pydev Jython configuration
4. Monkeyrunner Development Environment ConfigurationSo far we've configured Jython's development environment, and we can already create a Jython project. But so far we have not finished Monkeyrunner configuration, so now the Jython project is not very convenient to develop Monkeyrunner. in fact, with the Monkeyrunner development environment is to add the package we need to Jython pythonpath inside, convenient for us to refer directly.
- Step 1: Open window>>preferrences
- Step 2: Locate the Pydev>>interpreters>>jython interpreter
- Step 3: Click on the "New jar/zips" button on the right to start selecting the Jar package below the \tools\lib you need under the SDK below.
- Click the OK button to complete the Monkeyrunner development environment configuration
Monkeyrunner Setup steps for Eclipse Development environment under Windows (and resolves an error in Jython configuration on the web)