1, the download of software resources
Introduction and download of 1.1 JDKIntroduction and download of 1.2 Android SDK1.3 Apache ant introduction and download2. Software Installation2.1 JDK Installation2.2 Android SDK installation2.3 Apache Ant installation3. Configuration of environment variables3.1 JDK environment variable configuration3.2 Android SDK configuration3.3 Eclipse Configuration3.4 Android Simulator configuration3.5 Apache Ant Configuration
1, the download of software resourcesIntroduction and download of 1.1 JDK
: http://www.oracle.com/technetwork/java/javase/downloads/index.html
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4B/8D/wKiom1QuygrTZTWKAANpkM8kay0045.jpg "title=" 1.png " alt= "Wkiom1quygrtztwkaanpkm8kay0045.jpg"/>
The JDK (Java Development Kit) is the Java Language Software Development Kit (SDK).
Introduction and download of 1.2 Android SDK
:
Http://www.android-doc.com/sdk/index.html
Filename:
adt-bundle-windows-x86_64-20140702
Note : The site is not stable, it is best to choose a better speed when downloading.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4B/8F/wKioL1QuynXwWinMAAQ7CkYflFI823.jpg "title=" 2.png " alt= "Wkiol1quynxwwinmaaq7ckyflfi823.jpg"/>
The new Android SDK includes:
Eclipse + ADT Plugin
Android SDK Tools
Android Platform Tools
The latest Android platform
The latest Android simulator
The new Android SDK integrates Eclipse, making it easier to build a platform for development environments.
Introduction and download of 1.3 apacheant
ant is Apache . Software Foundation a subproject in the Jakarta directory, which has the following advantages. Cross-platform. Ant is written in the pure Java language, so it has a good cross-platform nature. Simple to operate. Ant is made up of a built-in task and optional tasks. The ant runtime requires an XML file (build file). Ant can execute various tasks by invoking the target tree. Each task implements a specific interface object. Because ant builds files in XML format, it is easy to maintain and write, and the structure is clear. Ant can be integrated into the development environment. Because of its cross-platform and easy-to-operate nature, ant is easily integrated into a number of development environments.
:
http://ant.apache.org/
Note : If you do not install ant, you will often report some strange errors when developing an Android application.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4B/8D/wKiom1QuymSjMKjbAAA2Qm6f3aY560.jpg "title=" 3.png " alt= "Wkiom1quymsjmkjbaaa2qm6f3ay560.jpg"/>
2. Software Installation
For ease of management, the software used in this article is installed uniformly into the D:\androidapp directory. You can also start from the installation of "next" to the end, but remember to install the path to facilitate the subsequent addition of the environment.
Note: path names cannot have spaces and Chinese names
2.1 JDK Installation
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4B/8D/wKiom1Quyo7j_3YkAAEvhxr77XE616.jpg "title=" 4.png " alt= "Wkiom1quyo7j_3ykaaevhxr77xe616.jpg"/>
The paths are set in D:\androidapp and then all the way "next" to the end.
2.2 Android SDK installation
After extracting the files, include the following files:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4B/8F/wKioL1Quyv6xYTSJAABrCDYq_l8112.jpg "title=" 6.png " alt= "Wkiol1quyv6xytsjaabrcdyq_l8112.jpg"/>
No additional installation is required after decompression and can be used directly.
2.3 Apacheant Installation
Apache ant can be extracted directly, no additional installation is required.
3. Configuration of environment variables3.1 JDK environment variable configuration
Right-click the computer icon, select Properties, click the Advanced tab, and select the environment variable. Java environment variables need to add path variables and create new Java_home and classpath.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4B/8D/wKiom1QuyuaBRdqmAAGLOeNebE4279.jpg "title=" 7.jpg " alt= "Wkiom1quyuabrdqmaagloenebe4279.jpg"/>
With the environment variable selected, we can see that there are user variables and system variables, in the System variable drop-down box, locate the path variable, double-click, as shown, add; D:\androidapp\Java\jdk1.8.0_11\bin. Note that the newly added variable path is separated from the previous value with a semicolon.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4B/8D/wKiom1QuyvbzLrKIAAGWtnZCZuI529.jpg "title=" 8.jpg " alt= "Wkiom1quyvbzlrkiaagwtnzczui529.jpg"/>
The JAVA_HOME environment variable points to the installation path of the JDK, still under the system variable, click New, enter as follows.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4B/8F/wKioL1QuyzWDZjjhAACJE4DWpIs407.jpg "title=" 9.jpg " alt= "Wkiol1quyzwdzjjhaacje4dwpis407.jpg"/>
The CLASSPATH environment variable is the same as the Java_home setting method, but its value is d:\androidapp\java\jdk1.8.0_11\lib\dt.jar;d:\androidapp\java\jdk1.8.0_11\ Lib\tools.jar;d:\androidapp\apache-ant-1.9.4-bin\apache-ant-1.9.4\lib
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4B/8F/wKioL1Quy5Wx8gy6AACGDmHSzaw404.jpg "title=" 10.jpg "alt=" Wkiol1quy5wx8gy6aacgdmhszaw404.jpg "/>
3.2 Android SDK configuration
To add a system environment variable:
D:\androidapp\adt-bundle-windows-x86_64-20131030\sdk\platform-tools;d:\androidapp\adt-bundle-windows-x86_ 64-20131030\sdk\tools;d:\androidapp\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4B/8D/wKiom1Quy3HToRDeAACFHxvBDGQ123.jpg "title=" 11.jpg "alt=" Wkiom1quy3htordeaacfhxvbdgq123.jpg "/>
3.3 Eclipse Configuration
Go to Eclipse folder and click Eclipse.exe
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4B/8F/wKioL1Quy6_xBFFnAAKtJWKO9iw297.jpg "title=" 15.jpg "alt=" Wkiol1quy6_xbffnaaktjwko9iw297.jpg "/>
By clicking Eclipse.exe, we see the following screen, which creates a workspace for saving programs developed through Eclipse. Again, we still set the D-Disk Androidapp directory.
If you are downloading eclipse directly, there is no ADT plugin and you need to load it manually.
ADT is an Android development tool (Androiddevelopment tools) abbreviation for Android application plug-ins built in a powerful, integrated environment eclipseide. ADT extends the capabilities of eclipse, allowing users to quickly build new Android projects, create an application's user interface, add the Android framework's API components, and debug applications using the Android SDK tool to distribute the APK to the app.
ADT Plugin https://dl-ssl.google.com/android/eclipse/
Open eclipse, and in the menu bar, click Help in the order you select the install New software->work with-> Input in its drop-down menu Https://dl-ssl.google.com/android/ Eclipse Enter, software search plugin.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4B/8F/wKioL1QuzFuSPGGdAAJxIB6gKys899.jpg "title=" 16.jpg "alt=" Wkiol1quzfuspggdaajxib6gkys899.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4B/8D/wKiom1QuzDzCLVylAAMC2805ACc054.jpg "title=" 17.jpg "alt=" Wkiom1quzdzclvylaamc2805acc054.jpg "/>
Find the development package, typically, choose to install DDMS and develop tools to be able to meet the use of, of course, full installation better.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4B/8D/wKiom1QuzF7ABbe2AAMXXPyqsS8878.jpg "title=" 18.jpg "alt=" Wkiom1quzf7abbe2aamxxpyqss8878.jpg "/>
Continue to next,accept.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4B/8F/wKioL1QuzKTBh_43AADYQUhm7IE662.jpg "title=" 19.jpg "alt=" Wkiol1quzktbh_43aadyquhm7ie662.jpg "/>
Click Finish, the software will install the selected plug-in, the appearance of warning does not matter, wait a little while time is OK.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4B/8D/wKiom1QuzMeCwp4eAACoTqqvc_Q937.jpg "title=" 20.jpg "alt=" Wkiom1quzmecwp4eaacotqqvc_q937.jpg "/>
3.4 Android Simulator configuration
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4B/8F/wKioL1QuzRDxQ30rAACPEEvEGOc546.jpg "title=" 21.png "alt=" Wkiol1quzrdxq30raacpeevegoc546.jpg "/>
Click on the Red circle button to configure the Android emulator, choose the package you need to install to download, can choose or feel the need, all choose it.
Select the package you want to load, click Install packages, and agree to the relevant agreement to download.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4B/8F/wKioL1QuzSKzQ5sJAAO8299KjhI318.jpg "title=" 22.png "alt=" Wkiol1quzskzq5sjaao8299kjhi318.jpg "/>
If the "https://dl-ssl.google.com refused" error occurs, the solution is described in:
http://blog.csdn.net/x605940745/article/details/17911115
Need to flip the wall, you can add Google's IP address in the host file.
3.5Apache AntConfiguration
The Apache ant environment variable configuration is described in:
Http://www.cnblogs.com/yuzhongwusan/archive/2013/03/26/2982411.html
Set the ANT environment variable in window:
Ant_home D:\androidapp\apache-ant-1.9.4-bin\apache-ant-1.9.4
Path D:\androidapp\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin
Classpath D:\androidapp\apache-ant-1.9.4-bin\apache-ant-1.9.4\lib
This article is from the "Moonlight into Ashes" blog, please be sure to keep this source http://ankneo.blog.51cto.com/9446030/1560551
Build the Android development environment