Female ticket graduation is also related to Android, to tidy up the steps to build the environment last year.
The steps are as follows:
1. Download jdk:http://www.oracle.com/technetwork/java/javase/downloads/index.html (download page)
Http://download.oracle.com/otn-pub/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-windows-i586.exe (32-bit)
Install JDK, my installation directory is C:\Java\jdk1.7.0_17 and C:\Java\jre7;
2. Download the Android SDK Toolkit adt-bundle-windows-x86,https://pan.baidu.com/share/link?shareid=2467043241&uk=1847527175 The &fid=520028196791275 is about 400 m, which contains eclipse and sdk,eclipse and it's already integrated with ADT. My entry version adt-bundle-windows-x86-20130917; Unzip the adt-bundle-windows-x86 package, my path is C:\Java\adt-bundle-windows-x86, It contains the Eclipse and SDK folders, as well as an SDK Manager;
3, configuration environment variables, desktop--Computer, right-click Properties, advanced system settings, advanced systems, environment variable->adminstrator user variables (specifically related to their own user name), new or edited variables (if already exist, append , not existing on the new, when the addition of attention, the number is separated from the previous)
Variable name: java_home
Variable Value: C:\Java\jdk1.7.0_17
Variable name: ANDROID_SDK
Variable Value: C:\Java
Variable name: Path
Variable value:.; %java_home%\bin; C:\Java\adt-bundle-windows-x86\sdk\tools; C:\Java\adt-bundle-windows-x86\sdk\platform-tools
Variable name: CLASSPATH
Variable value:.; %java_home%\lib\tools.jar;%java_home%\lib\dt.jar;%java_home%\lib;
(Note the previous. Number)
4. Test environment variables
Run->cmd, enter Java or JAVAC Test command to see success or not;
5. Related SDK Updates
Running Eclipse under C:\Java\adt-bundle-windows-x86\eclipse
Update Android 4.2.2 API, other on-demand updates!
6. Configure Android Simulator
Open the AVD Manager
Create a new Android simulator
Fill in relevant parameters as required
Click Start to run the simulator
7, the Real machine debugging
Set up Android phone for USB debug mode, step:menu-> settings--Development, choose USB Debugging;
USB connection to the computer, the installation of mobile phone driver, if there is no relevant driver, you can install pea pods for driver installation;
Detects if a mobile device has been identified
8, the new HelloWorld, has been the next step:
Project Name HelloAndroid1
Final project Structure
9, the simulator debugging operation:
Right-click Android Project->run as->android Application
10. True Machine Commissioning
Right-click Android Project->run as->android Application
After selecting the device, run the console output as follows:
At this point, the development environment is fully built!
Reference: http://blog.csdn.net/wangqiuyun/article/details/8731240/
Android development Environment building based on Adt-bundle-windows-x86