STEP0: Background, those years ...
Thinking back that year (at the latest in 2013), the deployment of the Android development environment is a time-consuming and laborious job for many beginners:
- Download and install the JDK
- Download and install Eclipse
- Download and install the Android SDK
- Download and install ADT (abbreviation for Android Develop Tools)
- Blah...blah ...
In the process you will find that the Android SDK installation package provided by the official website is not a complete SDK development environment, but a collection of core development tools, developers also need to download different Android version SDK development package through the SDK manager, and most of the pit dad is, Most of these operations are done online, and most of the links required to access these online installations are located under the google.com domain name. For some reason, the domestic general broadband network is unable to directly access these link addresses, so the domestic developers will be sad and try to find a force proxy server to complete the installation operation ...
The past, really said much is tired (tears) Ah. In 2013 years, Google did a very strong thing, that is, in addition to the JDK beyond the many, integrated into a package called ADT Bundle, greatly simplifying the complexity of the entire deployment operation. Today, ADT bundles have evolved into Android Studio, which is the official development environment recommended by the SDK official website (http://developer.android.com/sdk/index.html).
STEP1: Download and install JDK
Links: http://www.oracle.com/technetwork/java/javase/downloads/index.html
The installation package of the JDK comes with a JRE, which, during installation, determines whether the JRE needs to be installed depending on the current system's actual situation, so you only need to download the JDK's installation package.
The installation process is nothing to say.
STEP2: Configuring Environment Variables for JDK
To create a new system variable:
| Variable name |
Java_home |
Note: Variable names must match exactly |
| Variable Value |
C:\Program files\java\jdk1.8.0_25 |
Note: Fill in the JDK installation path on the current system |
As shown in the following:
To check if the JDK is installed successfully, you can enter "Java–version" in the Command line window and if you see the information shown, the installation is successful:
STEP3: Download and install Android Studio
Links: http://developer.android.com/sdk/index.html
After the installation package is downloaded, the entire installation process can be said to be a 0 threshold, depending on the wizard step-by-step.
Here's a two-point suggestion:
- Installation package Selection suggestions: For beginners, it is recommended to choose the highest level of integration (also the largest) of the installation package bar;
- Installation path Recommendations: For example, My computer's C disk space is relatively tense, considering the andoid version of the numerous, and the corresponding SDK volume is not small, so I set the SDK installation path in the remaining space more abundant D disk.
Additional Issue 1: Installing Android Studio without first installing the JDK
If you are installing Android Studio, see the following interface, either to indicate that you are a novice, or that you really haven't done Android development for a long time.
Other issues 2:no JVM installation found
If you do not complete the actions in STEP2 above, you will get an error when starting Android Studio:
Other questions 3:fetching Android SDK compoment Information
Android Studio will start in the fetching Android SDK Compoment information for a long time, as shown in:
Here's how to fix it:
- Open the Idea.properties file under the Android Studio installation folder with a text editor, on my Computer, the full path of the file is: C:\Program files\android\android studio\bin\ Idea.properties
- Add a line at the end of the Idea.properties file: disable.android.first.run=true
- Save the file and restart Android Studio to access the interface.
Additional Issue 4: Cannot use Android Studio new project (Start a new Android studio project)
Specifically, after launching Android studio, in the following interface, click "Start a new Android studio project" without responding:
This happens because the SDK is not installed according to the default path, for example, in Step3 above, I set the installation path of the SDK on the D drive. This problem can be resolved by modifying the configuration, the steps are as follows:
- Open the Setup interface: Configure > Project Defaults > Project Structure
- Set the path to the SDK under Android SDK Locaiton, which is the SDK installation path set in STEP3 above:
- After you save your settings, you should be able to create a new project with start a new Android Studio project.
Android Studio Development Environment deployment