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
2. Click Next.
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\
4. Wait for the installation.
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.
6. Wait for the installation.
7. Click Close.
8. Configure environment variables after installing JDK. Right click on "Computer". Click "Properties".
9. Click "Advanced System Settings".
10. Click "Advanced", and then click "Environment Variables".
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\
12. Click New. Enter the variable name in CLASSPATH
Variable value input.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar
13. Find Path in the system variable and click Edit.
Enter the variable value %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;
Finally remember to click OK
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.
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:
When java is entered, the success icon is as follows:
When javac is entered, the success icon is as follows:
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.
2. Right click on the sdk file and select Unzip to (F)...
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.
4. Right click on "Computer". Click "Properties".
5. Click "Advanced System Settings".
6. Click "Advanced", and then click "Environment Variables".
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
Three: Android Studio installation.
1. Double-click to open the android studio installation package.
2. Click Next
3. Do not check the Android SDK, click Next
4. Click I Agree
5. Click Browse to select the newly created sdk folder on the D drive or other drives.
6. Click Browse to change the installation location of Android Studio, and create a new folder AndroidStudio on the D drive or other drives.
7. Click Next
8. Click Install to start the installation.
9. The installation is in progress. If there is the following prompt, click OK. After the installation is complete, click Next.
10. Click Finish
11. After opening the software, select the second item and click OK.
12. Click Next.
13. After selecting Custom, click Next.
14. Click Next.
15. Click Next.
16. Click Finish.
17. The progress is relatively slow, so wait a little longer.
18. Click Finish.
19. If there is this prompt in the upper right corner, click to close.
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.
21. The installation is complete.
Four, SDK environment configuration of Android Studio
1. After starting the Android Studio software, click configure in the list.
2. Click on Project Defaults
3. Click on Project Structure
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.
Fifth, open the project test file for testing.
1. Unzip the test project file.
2. Click Open an existing Android Studio project.
3. Select the decompressed test file Oandroid-test
4. Click close.
5. Click Run in the menu bar, then click Run app
6. Click OK
7. You can see that the program starts to run.
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.