Android studio 3.0 installation and configuration method graphic tutorial

This article shares the installation and configuration of Android studio. The details are as follows

1. First download the Android studio installation package, which can be downloaded from http://www.android-studio.org/ , download the latest version. Version 3.0 is used for demonstration here. The corresponding installation package is android-studio-ide-171.4408382-windows.exe. The size of the installation package is 681 MB. The installation package does not come with SDK

2. After downloading the installation package, click to install, and the following interfaces will appear in turn

Choose your own installation path here

Here, the Android studio program has been installed, but it still needs to be configured; Check start Android studio, and then click Finish to start as, as shown below

Select the second item, and then click OK to open the following startup interface

The following figure will pop up at startup

Click Cancel, and then enter the as installation wizard interface

Click next to enter the UI theme selection interface. You can select your favorite style. Here, you can select darcula style

Here, you need to specify the local path of the SDK. If the SDK already exists in the previous computer, you can specify this path, and you don't need to download the SDK later; I'm here to demonstrate a scenario where the SDK has not been installed locally. For the time being, you can specify a path where the SDK will be saved later;

Click Finish to automatically download the SDK (note that you need to ensure computer networking at this time)

After downloading the SDK, click Finish to enter the as welcome interface

3. Configure the first running environment of as, and successfully compile and run an app. Take HelloWorld as an example.

Click start a new Android studio project in the above figure to create a new project and enter the following interface

At this point, the establishment of a project is completed. The first project will be found stuck in the startup interface below

The first time the engineering card is created in this interface, it is because the gradle construction tool is downloaded from the Internet. The network speed is very slow due to downloading from foreign sites. Click Cancel here to close the interface and manually configure gradle;

First, find the path to the. Gradle folder, which is usually under the user account folder. For example, here is C: \ users \ issuser \. Gradle

You will find that the files in the following figure are generated under this folder

Gradle-4.1 here refers to the version, which will be automatically generated according to your as version. At this time, we can download a gradle-4.1-all.zip package on the Internet, and then put it under the path and decompress it. Note that it must be placed under the randomly generated folder with a long string of characters, as shown in the following figure

At this time, click the link at the bottom of the figure to download the SDK. After a download, an error message will still be displayed after try again. Then click download again, and then click try again until the error message is released. (in addition to this solution, you can also manually change the compilesdkversion in the build.gradle file, and the buildtoolsversion [/ code] [Code] targetsdkversion is the corresponding 27. This can also be solved later.)

After the above gradle is built, you can click build APK in the figure below to compile and package the APK file. The path of the generated APK file is shown in the figure below

After generating the APK file, export the APK file to the simulator or real machine for installation. The operation effect diagram is as follows

So far, the installation and development environment of Android studio are configured.

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>