"Novice Serial" one: using Android studio to build an Android integrated development environment
http://bbs.itcast.cn/forum.php?mod=viewthread&tid=87055&fromuid=150705
(Source: Preach Wisdom Podcast Forum-The community of the Wisdom Podcast)
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-windows Note: 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 master collection of Android development required for the collection of software, please expect, or Gavin Master Q1441761649 request) downloaded to the local computer and then 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 the suffix named EXE, as shown in:
These are the tools that the JDK contains, and we can easily invoke these tools and their commands by configuring the JDK's variable environment.
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_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 only after the download is complete, you 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: the first time you start Androidstudio, you need to set up the SDK installation directory, so the dialog will pop up as shown in the installation directory of the Android SDK, as shown in: Open Androidstudio After that, the default will help us to create an app for the project, as shown in: Run this default created project, for the convenience of running, we directly use the real machine as a simulator to run, as shown: note that when using the real machine debugging, the phone must turn on the USB debugging mode only line, as shown in: The mobile phone above the results as shown The desktop of the app on the phone also shows the icon for our Android app, as shown here: The work on Android studio to build an integrated development environment for Android is complete and the test is passed!
Iii. Simple use of Android Studio 3.1 view installed Android SDK
The installed Android SDK version looks like this: 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 now still in "Not Installed" status, which is not yet downloaded and installed, the SDK manager has already selected Android5.1 (API22) The entire content, if we want to develop Android app under Android5.1 (API22) platform, Then you can download Android5.1 (API22), as shown in: The default download and installation of the Android5.0.1 development package has met our needs to develop Android applications, as shown in:
Android Development Beginner Learning Summary (i)--using Android studio to build an Android integrated development environment