Article Directory
1. Download
- Method 1 (recommended):
Click https://pan.baidu.com/s/14zl3hWgi186z6lOW5AlK0Q to download (extraction code: g86n) - Method 2
Choose to download from the official website of Android Studio Chinese Group: http://www.android-studio.org/ - Method 3 If you
can overturn the wall, you can download it directly from the google genuine link on the homepage of the official website
2. Installation
- Java JDK must be installed before installing Android Studio, click https://zjj0707.blog.csdn.net/article/details/113444637 to view the download installation tutorial
- Double-click to download the file of android studio, enter the installation interface, click "next" to enter the next step.
- The latest version of Android Studio does not have an option to install the SDK at this step. You need to install it in the subsequent steps. In this step, you only need to tick all of them and click "next".
- To choose the installation path, just change the C drive to a non-system drive. Others do not need to be modified. If you must modify it, the path should not contain special characters, Chinese
- Click install
- After the installation is complete, click "Next".
- Click "Finish" and run Android Studio
- This step is to ask us whether to import the previous settings. If you have installed Android Studio before, you can choose the first one to import the previous settings. Here we do not import the previous settings, select the second one, and click "OK".
- Select "Don't send"
- Select "cancel", install AS for the first time, after startup, it is detected that the computer does not have SDK
- Enter the welcome interface and click "Next" directly
- Choose the second one and enter the personalized settings
- Choose a color you like, then click "Next"
- Check all the boxes in the picture (you can download them if you don’t check them, but for convenience, we check them all here), and choose a location where you want to install the SDK and other files (note: change the drive letter to a non-system drive) Yes. Files will be downloaded during the process, so be sure to connect to the Internet)
- The allocation of memory, the default 2G is fine, or it can be increased at will
- Click "Finish" to download
- The installation is complete:
Three. Create the first android project
- Choose Create
- Choose an empty layout
- Take your own project name
- Choose close
- Simply modify the content in the TextView
4. Pass the simulator and real machine test
First create an android machine through AVD manager and then pass a third-party emulator and real machine test ( android studio emulator test experience is not good, so choose a third-party emulator )
- Open emulator management
- Create Virtual Device Create an emulator
-
Select a device, click next
-
Choose a system image file, that is, choose the version of the Android system, you can choose your own, and then click "Download" to download
-
Agree to the agreement
- Click next
- You can modify the simulator name and directly Finish
Use a third-party simulator (lightning simulator) to test
- Download link: https://pan.baidu.com/s/1ShCufRfcaYHfBYkOz86ooA (Extract code: z4tc)
- android studio connects thunderbolt simulator
- Open the lightning simulator
- Press win+Rj to open the command line and enter cmd, enter the installation directory of the lightning simulator, and enter adb connect 127.0.0.0:5555
- Reopen android studio and run the program
Use real machine test
- USB connection to the real machine, open the developer option of the mobile phone, because the opening methods of each mobile phone manufacturer are different (find Du Niang yourself)
- Enter the developer options, turn on USB debugging, some phones also need to turn on USB installation
- After inserting the USB data cable connection, click the run of the android studio menu item, and select the corresponding device in the select device