1.1.1 Operating System
Only XP (32-bit), Vista (32/64-bit), Mac OS X 10.4.8 or later (x86), Linux (only tested on Linux Ubuntu dapper Drake) are currently supported.
My notes are just according to my system XP SP2/SP3 32bit to do the explanation, other system friends can Google the difference, anyway, are the same.
1.1.2 Android Development Environment
Both the official and I recommend using Eclipse for development, of course, the Eclipse version is more than 3.3, this is official, I have not tested under 3.3, 3.3 (Europa), 3.4 (Ganymede) can, Either the Java version or the EE version is OK, and you can download the latest version to eclipse official.
Because the development is based on Java, so the JDK is not required, the JDK requirements are 5.0 or 6.0, I still use 5.0 more, can go to the Sun official download.
If you don't use eclipse, you can build it directly using ant, which of course requires ant, ant configuration I mention in passing that Ant's people have learned, and beginners will not use it, certainly with Eclipse, hehe.
1.2 Android Development environment variable configuration
Configuration of the 1.2.1 JDK
have been configured, please drift over ... The Master floated over ...
Novice please follow up.
First to the Sun official download JDK, note that the JDK rather than the JRE, because the JRE is to provide the Java running environment, not the development environment yo. Sun Official http://java.sun.com
After downloading the installation or some friends are under the decompression package then extract to a directory, for example, I am C:\Program files\java\jdk1.5.0_14
Right-click My Computer-> Properties-> Advanced, click on the environment variables below, in the following "System variables" to select the new at the variable name entered the Java_home, the value of the variable entered the directory, such as mine is C:\Program files\java\jdk1.5.0 _14, OK and then create a new variable named CLASSPATH, the variable value is.; %java_home%/lib/rt.jar;%java_home%/lib/tools.jar, determine the variable to find path, double-click or click Edit, add%java_home%/bin to the top of the variable value; Pay attention to the inside; Oh. OK, OK, OK
Then start-run cmd, input Java or javac to see if there is no effect, if out a lot of stuff, that's OK, if there is a similar xxx is not internal or external command and so on that the set has problems, to see where there is a problem.
1.2.2 Eclipse Download Installation
To eclipse official download the latest version, http://www.eclipse.org/downloads/I just under the latest 189M of the eclipse-jee-galileo-win32.zip you can choose to download, After downloading the decompression can run. "Temporary" without other special configuration.
Configuration of the 1.2.3 SDK
Because we want to develop the Android application, so the next SDK is Google download, address after http://developer.android.com/sdk/1.5_r3/index.html update after the estimated address will change, So you can go to the Android homepage from http://developer.android.com/index.html, and then click on the SDK to go to this download page, I am XP, of course, download the first version of Windows. After downloading to a directory, such as mine is D:\SDK\ANDROID-SDK-WINDOWS-1.5_R3\ANDROID-SDK-WINDOWS-1.5_R3 then also want to set environment variables, with JDK settings, create a new sdk_home, a value of D : \SDK\ANDROID-SDK-WINDOWS-1.5_R3\ANDROID-SDK-WINDOWS-1.5_R3, then find path, plus%sdk_home%\tools in front; It's OK.
Like the JDK, we can also test whether the environment variable is set to succeed, the cmd window to enter Android, a bunch of things, OK complete.
Configuration of 1.2.4 Ant
The basic use of Eclipse development is not available. But some "master" is like, Oh, ANT is Apache things, so go to ant.apache.org download it, down back after decompression, configure the environment variable Ant_home = Extract paths path add%ant_home%/bin;
Similarly, test, cmd input ant, appear build.xml no similar hint on the OK.
1.3 Eclipse Settings
Of course, after all this is done, you won't be able to develop the Android app with Eclipse right away, you'll have to add the Eclipse plugin, but it's a very easy step, but after you open eclipse, click on the menu bar's help-> install new software ... Then click Add will come out of a add Site window, where name input Android (just take it yourself), location input plug-in network address:
https://dl-ssl.google.com/android/eclipse/
Then wait for the connection, and then install, "Android DDMS" and "Android Development Tools" are selected, finish on it, there may be a period of time will be to compute plug-ins occupy resources, and so on. When you are done, you will be prompted to restart Eclipse to load the plug-in, OK restart, you can use.
1.4 Android Development Environment Configuration final steps ...
Why this step is because when I run example always appear "Failed to find a AVD compatible with target", so write this step here to remind everyone.
AVD must be created before running the instance, you can enter the Android list directly in CMD, listing several APIs that can create AVD, I have id1 id2 id3 sdk1.1 sdk1.5 respectively.
Then everyone runs Android create--name MyName (Own, English, er)--target 3 (if you want to use sdk1.5 on the input 2,1.1 on the 1)
Once you've created it, you've done the ultimate step ...
Here, you can go to eclipse inside the new Android project, and then directly in the project right button run--run Android, but the simulator boot time a bit long, I started to think that failed, has been stuck in the word Android, in fact, that is in the boot ... Then everyone play their own first, over the addiction, can not afford a mobile phone, the addiction of the simulator ...
To add, before Eclipse builds an Android project, you need to configure the SDK directory in Eclipse, and note that it's not a tools directory. Method: Window--preferences--Android then enter the SDK directory address in the SDK location or click Browse to locate the SDK directory, and then Apply,ok completes the