Android Studio installation and configuration tutorial

The previous article introduced the installation and environment configuration of Java development related tools. For Java development, the installation and configuration are all over there, and you can start the road of Java development.

For Android developers, you also need to install Android Studio. Although Eclipse can also be used for Android development after installing the SDK and ADT plug-in, but the so-called [work is good, you must first sharpen their tools], Android Studio as Google ’s official Android The development tool, its powerful and convenient is not comparable to Eclipse, I believe you will love it after using it (just like NetEase Cloud Music, you know ...), and then recommend vomiting blood, the network disk package is presented with the latest 3.0 Version, my computer Eclipse and Android Studio are installed, Eclipse is used to learn Java, Android Studio is used to develop Android, and finally the official website download URL is attached: http://www.android-studio.org/, if necessary, you can Choose to download!

 

[Advantages of Android Studio]

  (1) Build support based on Gradle

  (2) Android specific refactoring and quick repair

  (3) Richer template code makes it easier to create programs

  (4) Tip tool to better control program performance, usability, version compatibility and other issues

(5) ProGuard and application signature functions are directly supported;

(6) Comes with a layout editor that allows you to drag and drop UI components and preview the layout on multiple screen configurations;

(7) Built-in Google cloud support;

(8) Built-in svn, git tool support;

(9) Support plug-ins, some eclipse, basically can be found in Android Studio.

(10) After 2.0, NDK is supported.

 

Android Studio installation and settings

 

  1. Tool preparation: Link: https://pan.baidu.com/s/1dFgxRBN Password: 8j3q

  2. Start the installation: click next all the way until the installation is complete, it is recommended to prepare a separate Android SDK in advance, this can be downloaded on the AndroidDevTools website. Those who have used Eclipse for Android development before can use the ready-made Android SDK.
     

  3. After the AS installation is complete, enter the configuration link (1) Click configure

    (2) Click Settings

    (3) List of configuration interface

    (4) Modify the font (the default is too small), and change it to about 16;

     (5) Modify the theme (may not be changed)

    Note: If you do n’t like your own theme, you can go to the website http://color-themes.com/ to get a third-party theme. I personally prefer the Sublime theme. After entering, select your favorite theme and download, you will find that after downloading is a jar package, return to Android Studio, select the menu bar "File-Import Settings", import the downloaded jar package. The renderings are attached:


    (5) Select the display line number

    (6) The function of setting code automatic completion (the old version does not have this function)

    (7) Modify the file encoding to UTF-8


    (8) Set up automatic package guide

 

After setting, you need to configure the SDK environment

4. The first step: add ANDROID_HOME variable, the variable value is where the SDK is

The second step: edit the path variable, the variable value is the directory where adb.exe is located, similar to JAVA_HOME, method one:% ANDROID_HOME% \ tools;% ANDROID_HOME% \ platform-tools (the original variable value is added with ";" before the end ;

Method 2: Add the directories where tools and platform-tools are located separately, use in the middle; separate.

 

Finally, win + R key and enter adb and android respectively, if no error is reported, it means the configuration is successful!

                         All installation and configuration is over!

PS : This article is original, welcome to exchange learning together and make progress together! If you have any questions, you can pay attention to my WeChat public account (Banxia Minlan) and communicate with me in the background.

       There is no way in life, every step counts!

 

 

 

Released eight original articles · won praise 9 · views 6204

Guess you like

Origin blog.csdn.net/DolphKong/article/details/81085698