Android Studio installation & Java development environment configuration detailed tutorial

1. Overview of Android Studio

Android Studio is a new development tool launched by Google for Android development at the 2013 I/O Conference. It is developed based on IntelliJ IDEA, and IntelliJ is recognized as one of the best Java development tools in the industry. Especially in the functions of intelligent code assistant, automatic code prompt, refactoring, J2EE support, various version tools (Git, SVN, GitHub, etc.), JUnit, CVS integration, code analysis, innovative GUI design, etc., it can be said to be very good.

On May 16, 2013, at the I/O conference, Google launched a new Android development environment - Android Studio, and improved the developer console, adding five new features  .

Android Studio is a new Android development environment launched by Google. Developers can see how their applications look on screens of different sizes while writing programs. Google has improved the developer console and added five new features, including optimization tips, application translation service, recommendation tracking, revenue curve graph, version testing and stage display.

1. Tips for optimization: Open your application in the main body, click the tip, and you will get this suggestion: develop a tablet version for your application.

2. Application translation service: Allow developers to obtain professional translation directly in the development subject. Upload your requirements, select translation, it will display the translator and price, and send back the translation within a week.

3. Recommendation Tracking: Allows developers to find the most effective ads

4. Revenue curve: Show developers their app revenue, divided by country

5. Trial version testing and phased display: developers can test the application, and then launch it to test users, and the test results will not be announced to the public. When a version is tested, the developer can roll it out to a certain percentage of users  .

Android Studio, a development tool, was announced for the first time, which is also for the convenience of developers based on Android development. One of the first problems to address is multi-resolution. Android devices have a large number of different screen sizes and resolutions. According to the new Studio, developers can easily adjust applications on devices with various resolutions. At the same time, Studio also solves the language problem. The multilingual version (but no Chinese version) and translation support make developers more adaptable to the global development environment. Studio also offers revenue recording functionality.

The biggest change is in the beta testing functionality. Studio provides Beta Testing, which allows developers to easily test run.

On May 29, 2015, at the Google I/O Developer Conference, Google released AndroidStudio version 1.3, which supports C++ editing and error checking. Android Studio 1.3 version code development becomes easier and faster, and supports C++ editing and error checking functions

Two, Java development environment configuration

        First of all, we need to download the java development kit JDK, download address: Java Downloads | Oracle , select the corresponding version according to your own system on the download page ( my computer is Windows 64-bit )

 

After downloading, install the JDK according to the prompts, and when installing the JDK, you will also install the JRE, and you can install it together.

Install JDK, you can customize the installation directory and other information during the installation process, for example, we choose the installation directory as D :\Java\jdk1.8.0_91

        Configuration variable environment

1. After the installation is complete, right-click "My Computer", click "Properties", and select "Advanced System Settings"

 2. Select the "Advanced" tab, click "Environment Variables

 The screen shown below will appear

 Set 3 properties in "System Variables", JAVA_HOME, PATH, CLASSPATH (case does not matter), if it already exists, click "Edit", if it does not exist, click "New"

Note: If you use a JDK version above 1.5, you can compile and run Java programs normally without setting the CLASSPATH environment variable.

The variable setting parameters are as follows:

  • Variable name: JAVA_HOME
  • Variable value: C:\Program Files (x86)\Java\jdk1.8.0_91         // To be configured according to your actual path

  • Variable name: CLASSPATH
  • Variable value: .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;          //Remember there is a "."

 

  • Variable name: Path
  • Variable value: %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;

This is the Java environment configuration. After the configuration is complete, you can start Eclipse to write code, and it will automatically complete the Java environment configuration.

Test whether the JDK is installed successfully

1. "Start" -> "Run", type "cmd";

2. Type commands:  java -version , java , javac  several commands, the following information appears, indicating that the environment variable configuration is successful

Three, the installation of Android Studio

        Android Studio is the official IDE for developing Android applications, based on Intellij IDEA. You can download the latest version of Android Studio from the official website Android Studio Download

 Before installing Android Studio, make sure Java JDK is installed. Install Java JDK

 Start the Android Studio installation, you need to set the JDK5 or later version path in the Android Studio installer

 The following picture initializes the JDK for the Android SDK

default option

512MB is selected by default

waiting to install

End button, and can open the Android Studio project in the welcome screen

The above is the detailed process of installing Android Studio and configuring the Java development environment! ! !

Literature Citation

1. Rookie Tutorial

2. "Android App from entry to mastery"

Guess you like

Origin blog.csdn.net/C222628/article/details/128857217