Android Learning has started! Built on the windows on the development environment, seemingly simple, in fact, a lot of problems, I set up a full 5 days to fix, of course, but also because the work of some busy reasons, time is not too much, OK, this tutorial, I will meet all the problems I have written on, hope to see this blog friend, will not make the same mistake.I. Building a Java development environment
1. Basic Concepts
If you have Java, just skip it.
http://blog.csdn.net/alspwx/article/details/20799017
This blog, is my previous reprint of others, mainly introduced: J2EE\J2ME\JVM\JRE\JDK and other differences, I believe you look after, there will be a harvest.
2. Why build a Java development environment
First of all, now the mainstream Android development tools, Eclipse is developed in Java, and Android development is also in the Java language, if you do not build a Java development environment, such as JDK, how do you run these development environments? Therefore, it is necessary to build the Java development environment.
3. Building a Java development environment first step: JDK download
official: http://www.oracle.com/technetwork/java/javase/downloads/index.html
Note that the installation path does not have spaces and Chinese characters.
4. Building a Java development environment Step two: Configuration of environment variables
http://blog.csdn.net/alspwx/article/details/20804515
This is still an article I reproduced, there is a detailed configuration of the environment configuration, as well as some of my own understanding.
The Java development environment is built when the JRE is installed and the JRE is installed when installing the Jvm,ok.
two. Build an Android development environment
1. Basic Concepts
Adt-bundle for Windows is an integrated IDE, officially provided by Google Android, which already contains eclipse, you no longer need to download eclipse, and the plugin is integrated It solves the complex problem of most novices configuring the Android development environment through Eclipse.
With Adt-bundle, the new development of Android students do not need to use the same as before in the online reference cumbersome configuration tutorial, can easily one step for Android application development.
OK, so what does Adt-bundle contain?
First of all, Eclipse is there, and this is your development tool.
Then there is the SDK. The Android SDK refers to the Android-specific software development kit.
Finally, there is ADT, what is this? He's a bridge between Eclipse and the SDK, so you can say that without adt,eclipse you can't use the SDK, and you'll naturally not be able to develop Android through Eclipse.
Adt-bundle, ADT has been integrated into eclipse, so you can develop it with little or no configuration.
2. Building an Android development environment first step:adt-bundle for Windows download
Official:http://developer.android.com/sdk/index.html
However, in general, this URL is not accessible, because Google is banned, so, along with the official website can not open, so, generally do not recommend this way to download.
We can download from Baidu cloud disk, or some third-party website. However, these are not the official website, so some are not too reliable, a adt-bundle and quite large, may have downloaded a lot, are not very able to use, so I will download a good adt-bundle, put on the Baidu cloud disk, for everyone to download.
Http://pan.baidu.com/s/1eQ2ArNO
On the top, depending on whether your computer is Windows or linux,32, or 64-bit, choose to download the appropriate version.
Do not look at the folder, is the 2013, now use, absolutely no problem.
2. Build an Android development environment The second step: Install (only for Windows, Linux I have no use)
Download the compressed package, please extract to a directory, on it, is not required any installation.
However, please note that you should not place the package in a folder with a directory name that is very long, or the decompression may fail. (I've had this error before, I thought it was the problem of compressing the package, the result is that my folder is too long)
3. Building an Android development environment step three: Update the SDK
Double-clicking the Sdk.manager.exe will appear as follows:
Here to start the update!
Well, there are a lot of people here, I believe there will be a question: What should I update?
1. Starting with the second option: android.4.4.2 (API 19), all APIs should be updated.
Because these are the platforms and API interfaces that correspond to different Android versions, how do you develop them without these?
Of course, some older, such as android2.1 Ah, and so on, do not update is OK.
Always, API interface like this, as long as there is, update, no error, now has Android 5.0, after the update, there will be.
2.tools
Should the goods be updated? Here to write down my understanding (of course, I am a novice, this is my personal understanding, if the understanding is wrong, please point out, I also study):
If you update tools completely, you'll get an error when you use Eclipse for Android development, prompting: ADT and SDK are incompatible.
Because ADT is: Version 20.0.0, and you update tools, it becomes 23.0.0, therefore, it is incompatible.
At the same time, when creating an Android project, the process will be different.
Therefore, it is not recommended to update!
If, update, please look at the version, make a selection and then update!
For example, the creation of AVD and the creation of an Android project are all related to tools. So, in order to prevent errors, do not update!
There is another reason, now online books and videos, materials, etc., are mainly android4.0, you update so high, and the book is not quite the same, for beginners, is also a problem.
3.extras
This literal meaning is understood and is extra meaning. That is, it can be installed or not installed.
Personal advice, do not install, later if there is a need, then to install.
Specifically this folder in the end what, Baidu has a half-day, there is no reason why, so it first.
OK, to this step, select finished, click "Install Packages", will enter, the following page:
Click, ACCEPT License, and then find the "Install" button, you can click on it.
Click on it to update. This process, a long, patient wait.
4. Building the Android development Environment Fourth step: a solution that cannot be updated
According to, the configuration, basically can be updated.
OK, until this step is complete, the Android environment is fully built.
Open, Eclipse, and you're ready to develop.
So, how do I create my first Android project? How to build an AVD? There will be a lot of tutorials online, I will also be the next blog introduction!
Android Learning 1th: Windows under Android Environment build: Adt-bundle