Android Studio download and install entry-level tutorial, just read this article (full text diagram)

Software Introduction

Android Studio is the official Android application development integrated development environment (IDE) based on IntelliJ IDEA. In addition to IntelliJ's powerful code editor and developer tools, Android Studio provides more features that can improve the efficiency of building Android applications, such as:

  • Gradle-based flexible build system

  • Fast and feature-rich emulator

  • Unified environment to develop for all Android devices

  • Instant Run, which pushes changes to a running app without building a new APK

  • Code templates and GitHub integration to help you build common app functionality and import sample code

  • Rich testing tools and frameworks

  • Lint tool to catch performance, usability, version compatibility, and other issues

  • C++ and NDK support

  • Built-in support for Google Cloud Platform for easy integration with Google Cloud Messaging and App Engine

Android Studio is an Android integrated development tool launched by Google, based on IntelliJ IDEA. Similar to Eclipse ADT, Android Studio provides integrated Android development tools for development and debugging

Specific installation steps

installation steps:

one. JDK installation and environment variable configuration.

1. Choose to install JDK according to your computer system type. The test computer is a 64-bit system, so double-click jdk-8u131 for 64-bit system.exe

insert image description here
2. Click Next.
insert image description here

3. Click Change to choose the installation path by yourself. I installed it on the D drive here, so just change the letter C to D directly, and then copy the changed installation path (use the shortcut key Ctrl+C when copying), you can copy The final installation path is saved in Notepad, which is needed when configuring the environment variables later. The copied installation path is D:\Program Files\Java\jdk1.8.0_131\

insert image description here
insert image description here
4. Wait for the installation.
insert image description here
5. It is recommended to create a new folder jre1.8 under the D:\Program Files\Java folder (because I chose to install it on the D drive before), if you installed it on other drives before, you can install it on other drives Program Files\Java Create a new folder jre1.8 under the folder. Then click Change to select the newly created jre1.8 folder, and then click Next.
insert image description here
insert image description here
insert image description here
6. Wait for the installation.
insert image description here
7. Click Close.

insert image description here
8. Configure environment variables after installing JDK. Right click on "Computer". Click "Properties".

insert image description here
9. Click "Advanced System Settings".

insert image description here
10. Click "Advanced", and then click "Environment Variables".

insert image description here
11. Click New. Enter JAVA_HOME for the variable name, and enter the installation path copied in Step 3 of the installation step for the variable value. D:\Program Files\Java\jdk1.8.0_131\

insert image description here
insert image description here
12. Click New. Enter the variable name in CLASSPATH

Variable value input.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar

insert image description here
13. Find Path in the system variable and click Edit.

Enter the variable value %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;

insert image description here
Finally remember to click OK

insert image description here
14. Check whether the JDK is installed successfully. Press the "WIN key + R key" on the keyboard at the same time. Type "cmd". Click OK.

insert image description here
15. Enter the command: java -version (there is a space between java and -version), java, javac these three commands (try them all, as long as one fails, it means that the JDK environment configuration failed). All display normal, indicating that the configuration is successful!

When java -version is entered, the success icon is as follows:

insert image description here
When java is entered, the success icon is as follows:

insert image description here
When javac is entered, the success icon is as follows:

insert image description here

Two: Unzip the SDK file.

Put the decompressed sdk file in the root directory of the D disk or other disks. Note that there should be no Chinese in the decompression path, and the disk space should be more than 20G.

1. Create a new folder sdk on the D drive or other drives.

**Bold style**

2. Right click on the sdk file and select Unzip to (F)...

insert image description here
3. Select the newly created sdk folder for the decompression path. Here I choose D:\sdk (required to modify the environment variables after copying this path), and proceed to the next step after the decompression is completed.

insert image description here
4. Right click on "Computer". Click "Properties".

insert image description here
5. Click "Advanced System Settings".

insert image description here
6. Click "Advanced", and then click "Environment Variables".

insert image description here
7. Click New. Enter ANDROID_SDK_HOME for the variable name, and enter the installation path decompressed in step 3 for the variable value. D:\sdk

insert image description here
insert image description here
insert image description here

Three: Android Studio installation.

1. Double-click to open the android studio installation package.

insert image description here
2. Click Next

insert image description here
3. Do not check the Android SDK, click Next

insert image description here
4. Click I Agree

insert image description here
5. Click Browse to select the newly created sdk folder on the D drive or other drives.

insert image description here
6. Click Browse to change the installation location of Android Studio, and create a new folder AndroidStudio on the D drive or other drives.

insert image description here
7. Click Next

insert image description here
8. Click Install to start the installation.

insert image description here
9. The installation is in progress. If there is the following prompt, click OK. After the installation is complete, click Next.

insert image description here
insert image description here
insert image description here

10. Click Finish

insert image description here
11. After opening the software, select the second item and click OK.
insert image description here
12. Click Next.

insert image description here

13. After selecting Custom, click Next.

insert image description here
14. Click Next.

insert image description here
15. Click Next.

insert image description here
16. Click Finish.

insert image description here
17. The progress is relatively slow, so wait a little longer.

insert image description here
18. Click Finish.

insert image description here
19. If there is this prompt in the upper right corner, click to close.

insert image description here
20. Find the Android Studio software icon in all programs in the start menu, and then right-click the shortcut to send to the desktop.
insert image description here
21. The installation is complete.
insert image description here

Four, SDK environment configuration of Android Studio

1. After starting the Android Studio software, click configure in the list.
insert image description here

2. Click on Project Defaults

insert image description here
3. Click on Project Structure

insert image description here
4. Reminder: If the path has already been set, there is no need to reset it. Enter the sdk path in the input box of Android sdk location, which is the path D:\sdk of the previously decompressed sdk, and enter the JDK installation path in the input box of JDK location. D:\Program Files\Java\jdk1.8.0_131 Finally click OK.

insert image description here

Fifth, open the project test file for testing.

1. Unzip the test project file.

insert image description here
2. Click Open an existing Android Studio project.

insert image description here
3. Select the decompressed test file Oandroid-test

insert image description here
4. Click close.

insert image description here
5. Click Run in the menu bar, then click Run app

insert image description here
6. Click OK

insert image description here
7. You can see that the program starts to run.

insert image description here
8. The installation is complete.

From JDK installation—>Environment configuration—>Android Studio installation—>Environment configuration—>Engineering tests are all here. If you don’t know how to do this, there is really no way.

Finally, if you don't like to read pictures and texts, here are also Android Studio video tutorials and the latest Android Studio installation package.


Guess you like

Origin blog.csdn.net/m0_56255097/article/details/132319978