Have a long time not updated blog, is really too busy recently, no time to summarize, now finally can have time to summarize some of the android above things, a long time ago wrote this about using Android studio to build Android integrated development environment, But has not been published, the purpose of writing this article is to record the Android development environment of the building process, this article is written in general, mainly records the entire building process, no technical content, feel helpful friends on the look!
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.
Ii. downloading and installing related 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-windows
Note: The physical machine version and the Java SDK version must be consistent: 64-bit or 32-bit.
2.2. Download JDK
I downloaded the version of JDK1.7,: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
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 the Java SE Development Kit, 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: These are the tools that the JDK contains, and by configuring the JDK's variable environment, we can easily invoke these tools and their commands. The basic tools included in the JDK are:
- 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 the variable environment for JDK on windows in order to configure the system variable environment for 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_homeFirst 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. PathThe Path property already exists and can be edited directly after the original variable:;%java_home%\bin JDK environment variable configuration do JAVA development people should, 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!
Iii. Simple use of Android Studio 3.1 view 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:
About building an Android integrated development environment using Android Studio so much so that Androidstudio is said to be very handy, but as the company developed Android apps using Eclipse, Therefore, there is no time to study the use of Android studio, wait for time to see it!
Android Development Learning Summary (ii)--using Android studio to build an Android integrated development environment