Details of building android development environment (eclipse + android sdk)

  • 2020-05-30 21:02:00
  • OfStack

This development environment is: eclipse + android sdk, the sequence of steps, no special requirements, depending on personal preferences

Step description:

1. Install eclipse

2. Configure jdk

3. Install android sdk

4. Install ADT and associate eclipse and android


1. Install eclipse

* to the official download eclipse (http: / / www. eclipse. org downloads /), I am downloading Eclipse IDE for Java EE Developers.

* normal decompression installation, pay attention to remember the path can be

2. Configure jdk

* set the JAVA path

Point right click on the "my computer", choose "properties", open the system properties dialog box, "advanced" TAB, and then point "environment variables" button in the open dialog box below the "system variables", some "new", and then fill in "variable name" in the dialog box JAVA_HOME, fill in the "values" Java jdk installation stress path, "sure

* set the CLASS path

"Create" another system variable, and fill in CLASSPATH in "variable name" and CLASSPATH in "variable value". JAVA_HOME % % \ lib; % JAVA_HOME % \ lib \ tools jar.

Explanation: at the very beginning. Where.(point) represents the current path,; (semicolon) is the path separator. The next %JAVA_HOME% references the JAVA installation path you just created earlier

* set the PATH path

PATH variable 1 is generally available, so select "edit" and add it after "variable value"; JAVA_HOME % % \ bin; %JAVA_HOME%\jre\bin, note the semicolon

* that way, JDK is installed. "Start - > Run ", enter cmd, and then at the command prompt: java-version, you should see java version "1.6.0_20"; JDK was installed successfully

3. Install android sdk

* I'm directly on the website to download sdk http management tools: / / www android100. org html / 201207/12/1149. html, choose SDK Setup tools - old version SDK automatic update tool

* after decompression, directly run SDK Manager, which will automatically detect whether it has been installed or upgraded

* after running the sync upgrade and installation, the sync update will be prompted to succeed

* set the Android path

Repeat (1) of step 1, create a new "system variable", fill Android_Home(case is no problem) in "variable name", and fill Android_Home in "variable value"

* set the PATH path

"Edit" PATH variable, add after "variable value"; %Android_Home%\tools, note the semicolon.

Thus, Android SDK 1.6 is installed. "Start - > Run ", enter cmd, then at the command prompt: android-help, you should be able to see help; Android SDK 1.6 was installed successfully

4. Install ADT and associate eclipse and android

* on the site to download ADT Plugin 8.0.0 http: / / www android100. org html / 201207/12/1149. html

* run eclipse and click "Help -" > Install New Software..." , open the Install dialog box, and click Add... Button, add site (Add Site), ADT in Name, Location ADT Plugin 8.0.0 directory, there is an zip file, add it, click ok can be installed locally

* Adnroid SDK: menu "Windows- > Preferences ", open the Preferences dialog box, click Android, on the right Android Reference, click SDK Location text box on the right Browse... Button, find the extract directory of android sdk, "ok"

Well, if you see that this place is doing all right, congratulations on your development environment configuration

Related articles: