Use Android Studio to build an Android integrated development environment, androidstudio

Source: Internet
Author: User

Use Android Studio to build an Android integrated development environment, androidstudio

1. Introduction to Android Studio

Android Studio IDE (integrated development environment for Android platform) was first released at the 2013 GoogleI/O conference ). It is based on the Intellij IDEA development environment and aims to replace Eclipse and ADT (Android Developer Tools) to provide developers with better development tools. Since Google has been promoting it, I believe it is expected to catch up with Eclipse soon.
  • Compared with Eclipse, Android Studio IDE has its own features:
  • Provides better support for UI design and code writing, allowing you to easily adjust various resolutions on the device.
  • The ProGuard tool and application signature are also supported.
  • However, currently, Android Studio cannot manage multiple projects in the same window. Each project opens a new window. I guess this is a reference to Intellij IDEA and Google will not make any adjustments in the near future.
  • It is really good to support the Gradle automated build tool, but it still takes some time for developers who just transferred from the Eclipse platform to learn and adapt.

2. Download and install 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 server version and Java SDK version must be the same, that is, the same 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 a little slow, later will be collected by the Android development of the collection of software required, please look forward to, or the main q1421361649 request) download it to your local computer and double-click it to install it. The Installation Process of JDK is relatively simple. The installation process is basically the Next step, during installation, you only need to install JDK and JRE in the same directory. After JDK is installed successfully by default, two folders will appear in the system directory, one representing jdk and the other representing jre.

The full name of JDK is Java SE Development Kit, which is the Java Development Toolkit. SE indicates the Standard Edition. JDK is the core of Java, including the Java Runtime Environment (Java Runtime Environment), a bunch of Java tools and Java class libraries called when developers develop applications.
You can open the Bin directory under the jdk installation directory, which contains many executable programs with the suffix exe, as shown in:
  
These are all JDK tools. By configuring the JDK variable environment, we can conveniently call these tools and their commands.
JDK includes the following basic tools:

  • Javac: a Java compiler that converts source code into bytecode.
  • Jar: a packaging tool that packs related class files into one file.
  • Javadoc: Document builder, which extracts documents from source code comments.
  • Java: run the compiled java program.

2.3 configure the JDK variable environment on WindowsTo configure the JDK system variable environment, we need to set two system variables, JAVA_HOME and Path. The following are the settings of these two variables.
1. JAVA_HOME
First, set the system variable name. The variable value is the JDK installation path on your computer: E: after \ Program Files \ Java \ jdk1.7.0 _ 75 is created, % JAVA_HOME % can be used as the unified reference path of the JDK installation directory.
  
2. Path
The PATH attribute already exists and can be edited directly. It is appended to the original variable:; % JAVA_HOME % \ bin
  
Configuration of JDK environment variables should be done by Java developers. I will not elaborate here!
2.4 download Android Studio

: Http://developer.android.com/sdk/index.html, download Android Studio to download FQ and get an installation package as shown in:

2.5 install Android Studio

The Installation Process of Android Studio is shown in the following figure: AndroidStudio is integrated with the Android SDK. Therefore, it takes a long time to check and install the Android SDK.

2.6 start running Android Studio

The Android Studio startup process is shown in. When you start AndroidStudio for the first time, you need to set the SDK installation directory. Therefore, the dialog box shown in will pop up and set the Android SDK installation directory, as shown in: after AndroidStudio is enabled, a project of the app will be created by default, as shown in figure: run the project created by default. For ease of operation, we directly run the project as a simulator, as shown in: note that the USB debugging mode must be enabled for the mobile phone when debugging with a real machine, as shown in: the running result on the mobile phone is shown in: the Android app icon is displayed on the desktop of the app displayed on the mobile phone, as shown in. At this point, all the work of building the Android integrated development environment using Android Studio is completed, the test passed!

Iii. simple use of Android Studio3.1 view installed Android SDK

The installed Android SDK version is shown in. We can see that as of today, the Anddroid version has been updated to Android5.1 (API22), and the update speed is really fast. Android5.1 (API22) the related content is still in the Not installed status, that is, it has Not been downloaded and installed. By default, SDK Manager has selected all content of Android5.1 (API22, if you want to develop an Android Application on the platform Android5.1 (API22), you can download the related content of Android5.1 (API22), as shown in: the Android 5.0.1 Development Kit downloaded and installed by default has already met our Android Application development needs, as shown in:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.