1. install Java SDK
: Http://www.oracle.com/technetwork/java/javase/downloads/index.html
Install the latest version: Java SE 7170.
After installation, configure the environment:
- Choose my computer> Properties> advanced> environment variables> system variables to add the following environment variables:
- Java_home: C: \ Program Files \ Java \ jdk1.7.0 _ 17 (Directory where you install JDK)
- Classpath value:.; % java_home % \ Lib \ tools. jar; % java_home % \ Lib \ DT. jar; % java_home % \ bin;
- Path: Start appending % java_home % \ bin;
Check after installation: Open the CMD window and enter javac
This interface is displayed, and the installation is successful.
2. Install eclipse (this step is simple, just install it)
: Http://www.eclipse.org/downloads/index-developer.php SelectionEclipse IDE for Java developers
3. Install the android SDK
: Http://developer.android.com/sdk/index.html
After installation, configure: Path: C: \ Program Files \ adt-bundle-windows-x86_64-20130219 \ SDK \ tools
This path is based on the above % java_home % \ bin; C: \ Program Files \ adt-bundle-windows-x86_64-20130219 \ SDK \ tools
Run SDK manager again
An error occurs:
Solution:
To c: \ windows \ system32 \ drivers \ etc this path, modify hosts, open with notepad, and finally add 74.125.237.1 dl-ssl.google.com
Run SDK manager again
4. Install ADT
- Open Eclipse IDE and choose "help"-> "install new software" from the menu"
- Click Add.... In the displayed dialog box, enter name and location: name, and enter http://dl-ssl.google.com/android/eclipse.
- After the return result is confirmed, select the ADT we just added from the drop-down list after work with. We will see the developer tools below. expand it to Android ddms and Android development tools, and select them.
Next, next ......
Then, configure the path of the android SDK:
- Select WINDOW> preferences...
- In the left panel select Android, then on the Right Click Browse... and select the SDK path, the local is: C: \ Program Files \ adt-bundle-windows-x86_64-20130219 \ SDK
- Click Apply.
5. Create AVD
AVD is created for AndroidProgramAble to run on Simulator
Environment variable settings: variable name: android_sdk_home variable value: e: \ Android-SDK
If this link variable is not set, the virtual device created by the developer is saved in the C: \ Documents ents and Settings \ <user_name> \. Android directory by default. When the environment variable android_sdk_home is set, the virtual devices created by the developer are saved in the PATH % android_sdk_home %/. Android. That is, under the path set by [android_sdk_home.
Window = "android Virtual Devices =" new"
After the virtual machine is installed, click Start to start. It takes a long time to start...
(Here cocould not open solution: http://blog.csdn.net/friendan/article/details/7476964)
6. Hello World
File-> New-> Project menu to create a new project "android Project"
Reference document: 1. http://wenku.baidu.com/view/2088bccaa1c7aa00b52acbf8.html
2. http://www.cnblogs.com/skynet/archive/2010/04/12/1709892.html