Yesterday built an Android development environment, tried several ways, also encountered some problems, here to share.
Note: The latest version of the SDK and ADT (23.0.0), published on the website, has bugs for the development environment integrated with Eclipse. When the build is complete, the files under the SRC and layout files are empty when the HelloWorld test is established. So it is best to download the previous version, I finally installed the successful use of the previous version of the SDK and ADT (22.6.2). The environment does not include the basic JDK installation, etc., this can own Baidu.
Here are 3 development environments to build:
1, website Android ADT Development Environment Construction
Follow the steps of the official website completely.
1.1. Download ADT
: http://developer.android.com/sdk/index.html
The official website said: For beginners, it is recommended to download the Integrated development tool ADT, which can quickly build the development environment. this eclipse ADT Bundle contains the Android SDK tools and the Eclipse integrated development environment.
1.2. ADT Installation
Unzip this package to the installation directory (custom), and then run the eclipse in this package(e.g.), Note: do not move any files in this package, otherwise you will need to manually update some configurations.
1.3. Run the Android SDK Manager to download the necessary packages
Note: The offline SDK can be used without downloading to proceed directly to the next step.
To add a package for the SDK:
The Android SDK does not contain everything we need to develop,and theSDK divides the tools, platforms, and other components into packages, and we can use the SDK Manager To download what we need. Before we develop, we need to download some necessary packages.
Before downloading these packages, we want to launch the Android SDK Manager. The startup method is simple, click on the toolbar's SDK Manager to do it.
Translation:
Download the latest SDK Tools
To minimize the setup of the Android SDK, you need to download something like this:
Open the Tools catalog and select the following three
2. Select a Android API version, and then download the following:
The Android support Library provides a Collection of APIs to be compatible with multiple versions of the Android system.
Open the Extras directory and select the following:
If you want to use Google APIs for development, you need to download the following packages. Note:Google Play services APIs require a mobile phone to install Google Play Store. If you want to run such a program on the emulator, you need to install the Google APIs system imagevia SDK Manager .
When all the packages that need to be installed are selected, click Install x packages in the lower right corner ... to install these packages, for example, notice that you do not exit during installation SDK Manager . After the installation is complete, proceed to the next configuration.
1.4. Configuring the SDK
After reboot, enter window-->preference to set
1.5, Installation simulator with the simulator I said, too slow, the following introduction of a simulator called Genymotion, more powerful. After the simulator is installed, the complete development and test environment is built successfully and a HelloWorld can be constructed.
2, Eclipse IDE+SDK+ADT Development Environment Build 2.1, download eclipse
Note: Eclipse Integrated Android Development Environment has a version requirements, the lowest do not remember, it is best to download 4.0 above, otherwise may not be integrated. I downloaded:eclipse-standard-kepler-sr2-win32-x86_64.zip
http://www.eclipse.org/downloads/
2.2. Download a separate SDK
Http://developer.android.com/sdk/index.html
2.3, decompression Eclipse2.4, configure ADT
Open Eclipse, click help-->install new software, if you are done, in the middle there is a warning, direct OK, after completion restart Eclipse.
ADT:http://developer.android.com/sdk/installing/installing-adt.html
2.5, with 1.4-1.5
3, Android Studio installed Android Studio is still in beta phase, I use the unaccustomed, installation is very simple, do not need to do the various configurations as before. Install directly to the end.
:http://developer.android.com/sdk/installing/studio.html
4, genymotion Android simulator 4.1, genymotion android Download installation
:http://www.genymotion.cn/
The installation of this simulator, the official website has been said to be very clear, but also in Chinese.
4.2. Plug-in installation in Eclipse is similar to the installation of ADT plug-ins, such as:
Http://plugins.genymotion.com/eclipse
(This address: http://blog.csdn.net/zhshulin/article/details/37035219)