First, Android Studio Brief introduction
the Android Studio IDE (Android Platform integrated development Environment) was first released by the GOOGLEI/O conference in 2013. It is based on the IntelliJ idea development environment and is designed to replace Eclipse and ADT (Android Developer tools) to provide developers with better development tools. Since Google has been trying to promote, I believe it will soon be possible to catch up with eclipse.
- Compared to the eclipse,android Studio IDE has its own features:
- Better support for UI design and code authoring makes it easy to adjust multiple resolutions on your device.
- Proguard tools and application signatures are also supported.
- However, the current version of Android Studio cannot manage multiple items in the same window. Each project opens a new window. I guess this is a reference to the behavior of IntelliJ idea, and Google will not make any adjustments to this recently.
- It's great to support the Gradle Automation build tool, but it will take some time to learn and adapt to the developers who have just moved from the Eclipse platform.
Second, download and install the relevant software
2.1. Development environment
Physical Machine Version: Win 8 (64-bit)Java SDK version: jdk-7u45-windows-x64 (64-bit)Android Studio version: Android-studio-bundle-135.1740770-windowsNote: The physical machine version and the Java SDK version must be consistent: 64-bit or 32-bit.
2.2. Download JDK
official:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html (Link download speed may be slow, later will be the main collection of Android development required for the collection of software, please expect, or Gavin Master Q1441761649 request) after downloading to your local computer, double-click to install. JDK installation process is relatively simple, the installation process is basically one way next, do Java developers will, in the installation only need to pay attention to the JDK and JRE installed in the same directory, the JDK default installation, will appear in the system directory two folders, a representative of the JDK, A representative JRE
the full name of the JDK is J. Ava SE Development Kit, also known as the Java Development Toolkit. SE represents the Standard Edition. The JDK is the core of Java, containing the Java runtime (Java Runtime Environment), a stack of Java tools, and a Java class library that is called when developers develop applications.
we can open the Bin directory under the JDK's installation directory, which has many executable programs with suffixes named EXE, as shown in:
/span>
These are the tools that JDK contains, and we can easily invoke these tools and their commands by configuring the JDK's variable environment.
JDK contains the following basic tools:
- Javac:java the compiler to convert the source code into a byte code.
- Jar: Package tool to package related class files into one file.
- Javadoc: Document generator, extracting documents from source notes.
- Java: Run the compiled Java program.
2.3. Configuring a variable environment for JDK on Windowsin order to configure the system variable environment of the JDK, we need to set up two system variables, namely Java_home,path. The following are the settings for these two variables.
1, Java_home
first set this system variable name, the value of the JDK on your computer's installation path: E:\Program files\java\jdk1.7.0_75 After creation, you can take advantage of%java_home% as a unified reference path to the JDK installation directory.
2. Path
The Path property already exists and can be edited directly, appended to the original variable:;%java_home%\bin
the configuration of the JDK environment variables do Java development people should be, here is not detailed!
2.4. Android Studio Download
: http://developer.android.com/sdk/index.html, note, download Android studio to FQ. after the download is complete, get an installation package as shown:
2.5. Android Studio Installation
after the download is complete, you are ready to install, double-click Android-studio-bundle-135.1740770-windows.exe to start the installer, as shown in the Android studio installation process: Androidstudio is integrated with the Android SDK, so remember to tick the Android SDK when installing This installation process is a bit long and takes a little time.
2.6. Start running Android Studio
the Android studio boot process looks like this: when you start Androidstudio for the first time, you need to set up the SDK installation directory, so the dialog box appears as shown, set the installation directory of the Android SDK as shown in: after opening Androidstudio, the default will help us create an app for the project, as shown in: Run this default created project, for ease of operation, we directly use the real machine as the simulator to run, as shown in: Note that when debugging with a real machine, the phone must turn on USB debug mode, as shown in: The results of the operation above the phone are as follows: The desktop of the app on the phone also shows the icon for our Android app, as shown in: This is where Android studio builds the Android integrated development environment and the test is done!
third, the simple use of Android studio 3.1 Viewing the installed Android SDK
The Android SDK version is already installed as shown in: we can see that as of today, the version of Anddroid has been updated to Android5.1 (API22), the update speed is really fast ah, Android5.1 (API22) related content is still in the "not Installed" state, That is, the SDK manager has already checked the entire contents of Android5.1 (API22) By default, and if we want to develop an Android app under Android5.1 (API22), we can download Android5.1 ( API22), as shown in the following: The default download and installation of the Android5.0.1 development package has already met our need to develop Android applications, as shown in:
Build an Android integrated development environment using Android Studio