Basic tutorial for Android-1.2 Development Environment setup and basic tutorial for android

Source: Internet
Author: User

Basic tutorial for Android-1.2 Development Environment setup and basic tutorial for android
Basic tutorial for Android-1.2 Development Environment setup

Currently, mainstream Android development environments include:
① Eclipse + ADT + SDK
② Android Studio + SDK
③ IntelliJ IDEA + SDK
Most developers in China are still using Eclipse. Google announced that it will not update ADT any more, and the official website also removed the Eclipse download link integrating the Android development environment, all kinds of phenomena indicate that the developer will eventually transition to Android Studio. Of course, this transition will take a long time, but if you are just learning Android, you are advised to directly start with Android Studio; and many excellent open-source projects are based on Android Studio! Of course, the two development environments will be introduced in this tutorial. Which of them depends on you ~
Another IntelliJ idea is similar to Android Studio!

1. JDK installation and configuration
  • Step 1: Download JDK
    You can download it from the official website: Jdk official download
    You can also download from my online storage: My online storage
    PS: this can be any next one. It doesn't matter. 32 bits can only be the next 32 bits!

  • Step 2: Install JDK
    Just take the next step!

  • Step 3: Configure Environment Variables
    The environment variable is configured to facilitate some command line operations and will be used later!
    Right-click my computer --> advanced --> environment variable

    Create JAVA_HOME

    Modify the PATH variable. Do not delete the original object !!!!

    Create CLASSPATH

    Verify whether the environment configuration is complete
    Open cmd (command line) on the computer, Enter cmd with win key + R, and then javac and java in the command line. If the result is displayed, the configuration is complete:

2. Select either of the development tools

I also talked about the current situation of the development environment IDE at the beginning, and I forgot to mention one thing before: Android Studio is more configuration-consuming. If the computer is not very good, it is recommended that you use Eclipse for Android development first, the following describes how to familiarize yourself with the ide app development process and how to familiarize yourself with the use of the IDE:

Select one of the following two to start Android development!

Eclipse + ADT + SDK:
Android Studio + SDK:

3. Analysis of Related Terms

Subsequent content may be difficult for beginners, but you will find these things useful later ~
Skip this step if you cannot understand it.

4. Some commands of the ADB command line

Before executing the ADB command, we need to configure environment variables for our SDK.
Step 1:Create an ANDROID_HOME environment variable and paste the sdk root directory address:

Step 2:Update the Path environment variable, and add the following at the beginning of Paht:% ANDROID_HOME % \ tools;You can.
After the configuration is complete, we will learn the instructions:

5. APP package and installation process:

6. APP installation process:

7. Summary In this section

In this section, we analyze the current situation of Android development IDE. We recommend that you use Android Studio to develop Android apps if the hardware conditions of beginners are acceptable, and describe JDK installation and configuration, familiar with the IDE process, key name parsing, Common commands of the ADB command line, and finally parsing the installation and installation processes of the program! After this chapter, I believe that you have a brief understanding of Android development, understand the process of developing a program, and the corresponding project directory structure! I believe everyone will complain that the simulator AVD runs very slowly. Next, we will introduce you to the installation and use of Genymotion, an Android simulator that is faster than a real machine!

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.