Explain in detail the process of Android studio building Android integrated development environment

I haven't updated my blog for a long time. Recently, I'm too busy to sum up. Now I can finally sum up some things on Android. I wrote this article on building an Android integrated development environment using Android studio a long time ago, but it hasn't been published, The purpose of writing this article is to record the construction process of Android development environment. This article is generally written. It mainly records the whole construction process. There is no technical content. If you feel helpful, just take a look!

1、 Brief introduction to Android studio

In 2013, Google I / O conference first released Android studio IDE (integrated development environment for Android platform). It is based on IntelliJ idea development environment and aims to replace eclipse and ADT (Android Developer Tool) to provide developers with better development tools. Since Google has been trying to promote, I believe it is expected to catch up with eclipse in the near future.

Compared with eclipse, the Android studio ide has its own characteristics: it has better support for UI interface design and coding, and can easily adjust multiple resolutions on the device. Proguard tools and application signatures are also supported. However, the current version of Android studio cannot manage multiple projects in the same window. Each project opens a new window. I guess this is based on the behavior of IntelliJ idea, and Google will not adjust it in the near future. It's great to support gradle's automated build tool, but it will take some time for developers who have just transferred from the Eclipse platform to learn and adapt. 2、 Download and install related software

2.1 development environment

Note: the physical machine version and the Java SDK version must be consistent, that is, both 64 bit and 32-bit.

2.2. Download JDK

I downloaded the JDK 1.7 version

After downloading to your local computer, double-click to install. The installation process of JDK is relatively simple. The installation process is basically all the way to next. Anyone who does java development can do it. During installation, you only need to install JDK and JRE in the same directory. After JDK is successfully installed by default, two folders will appear in the system directory, one represents JDK and the other represents JRE

The full name of JDK is java se development kit, that is, java development toolkit. Se stands for standard edition. JDK is the core of Java, including Java runtime environment, a bunch of java tools and Java class libraries called by developers when developing applications.   

We can open the bin directory under the JDK installation directory, where there are many executable programs with the suffix exe, as shown in the following figure:

These are the tools included in JDK. By configuring the variable environment of JDK, we can easily call these tools and their commands.   

The JDK contains the following basic tools:

2.3. Configure JDK variable environment on Windows

In order to configure the JDK system variable environment, we need to set two system variables, Java_ HOME,Path。 Here are the settings of these two variables.   

1、JAVA_ HOME    

First set the name of this system variable. The variable value is the installation path of JDK on your computer: e: \ program files \ Java \ jdk1.7.0_ 75 after creation, you can use% Java_ Home% is the unified reference path of the JDK installation directory.

2、Path    

The path attribute already exists and can be edited directly. Append:;% after the original variable JAVA_ HOME%\bin

The configuration of JDK environment variables should be familiar to Java developers. I won't talk about it in detail here!

2.4. Android studio Download

After downloading, you will get an installation package as shown in the figure below:

2.5. Android studio installation

After downloading, you can start the installation. Double click android-studio-bundle-135.1740770-windows.exe to start the installation program. The installation process of Android studio is shown in the following figure:

Android studio integrates the Android SDK, so remember to check the Android SDK during installation

The installation process is a little long and takes a little time.

2.6. Start and run Android studio

The startup process of Android studio is shown in the following figure:

When you start Android studio for the first time, you need to set the SDK installation directory, so a dialog box as shown in the following figure will pop up,

Set the installation directory of Android SDK, as shown in the following figure:

After opening Android studio, an app project will be created for us by default, as shown in the following figure:

Run the project created by default. For convenience, we directly use the real machine as the simulator, as shown in the following figure:

Note that when using the real machine for debugging, the mobile phone must turn on the USB debugging mode, as shown in the following figure:

The running results on the mobile phone are shown in the figure below:

The icon of our Android application is also displayed on the desktop of the application displayed on the mobile phone, as shown in the following figure:

So far, the work of using Android studio to build Android integrated development environment has been completed and the test has passed!

3、 Simple use of Android studio 3.1 to view the installed Android SDK

The installed Android SDK version is shown in the following figure:

We can see that as of today, the Android version has been updated to Android 5.1 (api22). The update speed is really fast. The relevant contents of Android 5.1 (api22) are still in the [not installed] state, that is, they have not been downloaded and installed. By default, the SDK Manager has selected all the contents of Android 5.1 (api22). If we want to update Android 5.1 (api22) To develop Android applications under the platform of, you can download the relevant contents of Android 5.1 (api22), as shown in the figure below:

The development package of Android 5.0.1 downloaded and installed by default has met our needs for developing Android applications, as shown in the figure below:

Let's write so much about using Android studio to build an Android integrated development environment. It is said that Android studio is very convenient to use. However, because the company still uses eclipse to develop Android applications, there is no time to study the use of Android studio for the time being. Let's have a look when we have time!

The above is the whole content of this article. I hope it will be helpful to everyone's study.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>