Rookie first came to report, wrote a about the Android environment and Android Studio installation content (written for a long time, has not been sent). Only for the development of Android, but do not know how to build the environment of the small white for reference, experts please bypass it. In this caught dead (I am also a novice, but also the first time to write a blog, there are insufficient places, but also hope understanding).
One: JDK settings for installation and environment variables
Whether you want to build Java, or want to make Android, you first have to set up a Java environment---install JDK. JDK I have downloaded from the official website, placed in the Baidu Cloud disk, Link: http://pan.baidu.com/s/1pJiLQEB Password: 2JMZ
1. Install the JDKbelowand install the same method as normal software
Here you need to choose the installation path, of course, you can choose the default path, but be sure to remember the path of installation (important), because the following settings for the computer environment variables to use
Next wait for installation ...
After the installation of "JRE" appears, select the installation path and install it. (But remember not to install the JRE in the folder of the installation directory of the JDK just now, for example: My JDK installation path is "D:\JAVA\JDK8", do not install the JRE in "D:\JAVA\JDK8\", can be installed in the JAVA directory, my is "D:\JAVA\ JRE ")
Then wait for the success to be done.
2. " Environment Variables " the Settings
Find Computer--(right)--"Properties"--"Advanced system Settings" and "Environment variables"
Click "New" below, create a new variable, variable name: "Java_home" (no quotation marks), the variable value is the JDK installation path, such as (my JDK installation path is "D:\JAVA\JDK8").
Then, look for the "path" variable from "system variable", and at the top of the "path" variable value, add ".; %java_home%\bin; " (no quotation marks). (Of course, there are other ways to set the environment variables, one of the more tutorials on the web has also added "CLASSPATH" variable, "Path" variable is not the same setting method, but all can.) )
After the setup is complete, find "Run" in Windows "Accessories" (you can also use the shortcut key "Win + R"), then enter cmd--> "OK" and enter "Java–version", enter "Javac", enter. If the return information (such as) appears, the setting succeeds.
Two: Android Studio the installation
(a) First download Android Studio , Link: http://www.android-studio.org/index.php/chinese (of course, can also be downloaded from the official website (http://www.androidcommunitydocs.com/), But the speed may be very slow, here will not write how to download from the official website. )
(b) installation.
The next steps in the installation process are not explained, because you just need to click Next.
This article uses the installation file that contains the SDK to explain the installation steps for the installation files that do not contain the SDK. If you install using an installation file that does not contain the SDK, the installation steps will be less than those steps. If you are installing using a compressed package, you can skip this section directly.
1.
First option: Android Studio program, required. The second option: Android SDK If your PC already exists, the Android SDK can not be ticked. The third option and the fourth option are all related to the virtual machine, and if you do not use a virtual machine or a virtual machine in the SDK, you can uncheck it.
2.
Select the installation directory for Android studio and Android SDK
3.
If you tick HAXM in 1 (that is, the fourth option). This step occurs when HAXM provides acceleration services for virtual machines, details, and searches by itself.
You need to set this value according to your machine's content size, which is generally recommended by default.
Android Studio requires VC + + environment to run, the Android studio installation process will be installed automatically.
Some people's computers use 36X class software will prohibit the installation of VC + + environment, please pay attention to release.
(iii) Run Android Studio
Prerequisite Preparation Work
Install the JDK and configure the JDK environment variables. (This has already written the method in front)
Run Android Studio
This interface will be displayed for each installation. A configuration file that you choose to import into Android studio.
First option: Use a previous version of the configuration folder.
The second option: Import the configuration folder under one directory.
Third option: Do not import a configuration folder.
If you've used Androidstudio before, you can choose to go to the previous version (and of course this article should be useless). If you are using it for the first time, you can select the third item.
This is the check on your Android SDK. Someone will be here for a long time, the big reason is: network connectivity problems (probably with Google server in China is blocked), the speed is relatively slow.
And then:
When you finish updating the Android SDK, you will see this interface. Until this interface is explained, you can use Android Studio.
Option 1: Create a Androidstudio project.
Option 2: Open a Androidstudio project.
Option 3: Import the official sample to download the code from the network. This feature is not available in previous beta versions, and it is recommended to take a look at the official examples.
Option 4: Import the code from the version control system. Supports CVS, SVN, Git, Mercurial, and even GitHub.
Option 5: Import non-androidstudio items. Like the pure Live Eclipse Android project, Idea Android project. If your eclipse project is exported using the official recommended export (that is, export using Generate Gradle buildfiles), it is recommended to import using option 2.
Option 6: Set.
Option 7: Help documentation.
(iv) Android Studio Use
First find the installation path of the Android SDK, then find "SDK Manager double-click Run, check some of the development of Android needs to download the package, if there is no download or download is not complete, you can choose to download according to their own needs.
And then you can really use the
The following interface appears:
Next:
Next is the Select interface, which defaults to
The following can also be directly next
And then again: Wait ... Wait...
After successful creation ... (Use the rest to explore it yourself.) )
(v) Create a virtual machine
Such as:
Next...
Here you can create in Android Virtual devices, you can select a number of models may be more, in device definitions to create a few can choose, will be described below.
Created in Android Virtual devices:
Created in device definitions:
Select Create AVD is also a few settings for the simulator, which is given above, here is no longer give the picture.
(here to illustrate, the creation of the simulator size should not be too large, too big to start, run may be slow, and the size of the phone RAM and memory can meet their own needs, do not need too big, otherwise it will be very slow)
After Setup is complete, select the simulator you created and choose Start
Next, select Default to
The first boot will be slow, please wait patiently ...
Launch success, can be in the language, interface, according to personal preferences set, and the real phone settings, like this is no longer explained
(In fact, this simulator is very slow to run, but the beginning of the use of this, you can first experience.) There is also a faster simulator, the implementation method will be given later. )
Android Environment and installation of Android studio