Android Studio super detailed installation tutorial

Prerequisite: The JDK has been installed and the relevant environment has been configured. The specific tutorial will not be shown.
1. First download the Android studio installation package, you can download the latest version from http://www.android-studio.org/ .
Note: Generally, the stability of the latest version has yet to be tested. It is not recommended to use the latest version. You can choose a version number lower than the latest version.
Here we use the 3.0 installation version for demonstration, the corresponding installation package is android-studio-ide-171.4408382-windows.exe, the installation package size is 681 MB, and the installation package does not include SDK.
Note: After 3.0, there is no need to install the version, just use the free installation version. *.zip is the free installation version, and the free installation version is recommended.Insert picture description here

2. After downloading the installation package, click to install, and the following interface will appear Insert picture description here
in turn. Choose the program installation path
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
here. 3. Here the Android studio program is installed, but you need to continue to configure it; check Start Android Studio, and then click Finish to start AS, the following picture appears, select the second item, and then click ok Insert picture description here
Insert picture description here
. The following picture will pop up when starting.
Insert picture description here
Click cancel, and then enter the AS installation wizard interface
Insert picture description here

Click next to enter the UI interface theme selection interface, you can choose your favorite style.
Insert picture description here
Here you need to specify the local path of the SDK. If the SDK already exists in the computer before, you can specify the path, and you don’t need to download the SDK later; here is a demonstration that the SDK is not installed locally In the scenario, here you can temporarily specify a path where the SDK will be saved in the
Insert picture description here
Insert picture description here
Insert picture description here
future. After clicking Finish, the SDK will be automatically downloaded (note that the computer must be connected to the Internet at this time).
Insert picture description here
Insert picture description here
After the SDK is downloaded, click Finish to enter the AS welcome interface
Insert picture description here
. 4. The first establishment If you find that the project is stuck in the startup interface for a long time, it is because you are downloading the gradle build tool from the Internet. The Internet speed is very slow due to the download from a foreign site.
Insert picture description here
If you can’t wait, you can let it download by itself. If you can’t wait to click Cancel to close the interface, use manual configuration to
first find the path of the .gradle folder, usually under the user account folder, for example, here is C:\Users \issuser.gradle will find that the file in the following figure is generated in this folder.
Insert picture description here
Here gradle-4.1 refers to the version, which will be automatically generated according to your AS version. At this time, we can go to the Internet to download a gradle-4.1- All.zip compressed package, then put it in this path and decompress it, pay attention to it must be put under this randomly generated long string of characters folder, as shown below
Insert picture description here

Note: When entering the project, the gradle downloaded by Android Studio is displayed at the bottom, and you can see the version number. According to this version,
you can find gradle to exit AS and enter.
5. After gradle downloads the dependency package (if you think gradle downloads the dependency package very slowly, you can find a tutorial online to set up Alibaba Cloud mirroring and configure the local warehouse location, otherwise the default location is the C drive, and the C drive will slowly fill up), Click the run button at the top right to run on the simulator or real phone. If it is running on an analog phone, you need to download the mirror image at first. File–>Setting–>Appearance&Behavior–>System Settings–>Android SDK–>SDK Platforms–>Show Package Details, and then select a certain version of the image
Insert picture description here
here. Note that if the computer processor is an AMD series computer, it can only be used Run on a third-party simulator or real mobile phone. If you did not download the mirror image of the relevant Android system when downloading the SDK, you need to download the corresponding version of the mirror by yourself. Remember that you don't need to download all the mirrors. You only need to download 1-2 of the required versions.
6. Create the simulator
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
After the simulator is created
Insert picture description here
, start the simulator.
After starting the emulator, click Run in the upper right corner to run on the phone.

Tips to use:
1 When we use android studio, it is inevitable that we need to download some SDK files needed for running the project from the android official website, but because the android official website is abroad, it will be slower to access, so configuring the domestic android official website mirroring website can improve Download speed, the most commonly used android mirror website here is the mirror website of the University of Electronic Science and Technology of China: mirrors.dormforce.net Port: 80
through File=》Setting=》Appearance & Behavior=》System Settings=》Http Proxy, select Auto-detect proxy settings, and fill in the URL: mirrors.dormforce.net:80, click clear passwords, and finally click OK to save the settings.
Insert picture description here
There are also other mirrors that can be found online.
2. It is not necessary to use the built-in emulator of Android Studio, you can use a third-party emulator, or you can use your Android phone directly, the specific tutorial will not be mentioned.

Guess you like

Origin blog.csdn.net/weixin_44116132/article/details/108282936