Build the android development environment once and for all (download all the reference sample api tutorial on the android official website) and androidtutorial
【Abstract】 This article briefly introduces the establishment of the android development environment, focuses on SDK manager and AVD upgrade issues, and provides android reference, sample, api, and docs download information.
[1]Why did you write this question?
1. A powerful tool for work;
2. the world inside the wall is too fidgety, and nothing healthy can be obtained;
3. google and its android products are on the platform;
4. the SDK is too bad and too fragmented. You have to use the management tools to make it happen;
If you will go over the Great Wall, this wall of the wonder of the world, you can download two integrated development tools android Studio and adt-Bundle on the Android official website https://developer.android.com (as shown in ). the former is based on IntelliJ IDEA, and the latter is based on Eclipse ADT.
These two tools can be decompressed to create an android project. You can directly find an example and code it, and then connect to the real machine to run it. Everything looks so easy! The following figure shows the effect (Figure 1 ECLIPSE, Figure 2 Android Studio ):
It seems that there is no need to record articles. However, if you need to write apps of multiple android versions, you need an SDK Manager and AVD-android simulator. Because it is impossible to build multiple real machines. Can one android version be installed on each server?
【2. Manage SDK Manager and AVD
This is the focus of this article, because I have spent countless nights at this point. All kinds of attempts failed. Use fg742p. ext and goAgent are not satisfactory. If a turtle crawls on the internet, it sometimes times out and gets disconnected. That is, the traffic from 4G mobile phones cannot be successfully downloaded for several days or nights. Until the attempt to this blog: Failed to fetch URl https://dl-ssl.google.com/android/repository/addo Android SDK updates and ADT updates problems solution finally solved the download problem once and for all, and then my 4G network shared to the computer, download speed> 1 MB/S. All SDK versions are completed in minutes. Is the SDK and Tool I installed and various APIs and documentation: (Figure 1 shows the SDK and Tool that comes with the integrated Tool before download)
[3]What is permanent
1. After downloading these installation packages and tools, you can view the api and sample offline. You do not need to go to the android official website to view the Reference, api, and sample files.
2. You don't need to build a lot of real machines. To debug that version, simply enable the AVD virtual machine.
[Note] If you need an offline Android reference, api, docs, sample, or integrated development tool, contact me.