Android Studio installation and environment configuration tutorial

First, you need to determine whether the computer has a java environment installed, that is, whether a JDK is installed,

Verification method: directly enter cmd on the computer desktop win+R, and then enter java, javac, javadoc, java -version + enter in the black window (note that you enter a command and press enter once, if there is an output successfully, it means java The environment has been installed and successfully installed.
If it is unsuccessful, you need to reinstall the JAVA JDK and complete the configuration of the java environment. There are many related tutorials online, such as this blog: https://blog.csdn.net/siwuxie095/article/ details/53386227, I won’t go into details here.

After confirming that the JDK environment is installed, the AS installation will begin.

Installation resources can be downloaded from the official website,

I will also share the offline resource pack:

Link: https://pan.baidu.com/s/1d-7jRWhHwBU8DaustdJvVA 
Extraction code: 8xec 

 

The installation steps are as follows:

 

The computer memory should be at least 4G, and any drive should be at least 60G, try not to install C drive

 

The first step: create a new androidstudio, create a new SDK, studio, work, under this folder

 

The second step is to run the installation package, in the data.

As shown below, click next

As shown below, select all by default, click next

As shown below, click I Agree

The next step is to install to your newly created folder directory: note that the first one is placed in the studio and the second one is placed in the sdk

Click Install

 

Installing, wait for the installation to complete

Click next

See the interface below, it means the installation is successful, click Finish to complete

 

 

 

Configuration Environment:

 

After opening Android studio, enter the relevant configuration interface. During the first installation, there is no previous configuration data, so choose the second option. If you have installed AS in the past and have its configuration, you can choose the first one and import the configuration.

As follows, click OK directly

Wait a while

 

Click cancel

Click cancel, and then enter the AS installation wizard interface

Select the first standard version standredr and then next

Note: This step is to choose, install the SDK components. Here you need to specify the local path of the SDK. If the SDK already exists on the computer before, you can specify the path, and you don’t need to download the SDK later; if you haven’t installed the SDK locally, you can temporarily specify a path where the SDK will be saved later; here I am The demonstration is a scenario where no SDK has been installed locally. Here we temporarily specify a path where the SDK will be saved later, which is the SDK we built earlier.

Some tutorials suggest that after installation, the SDK should be downloaded separately, and you can install it directly through Android studio here.

As shown below, click next

As shown in the figure below, after clicking Finish, the SDK will be downloaded automatically (note that the computer must be connected to the Internet at this time)

 

 

As shown in the figure below, the SDK is downloading and installing, wait for the installation to complete

 

As shown in the figure below, after downloading the SDK, click Finish to enter the welcome interface of AS

Configure the AS running environment for the first time, 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,

Project location Select the work folder that you just created.

 

 

 

Only choose phone and tablet, Minimun sdk

Click Next.

Next step

 

Next, select Empty Activity and click Next

Next step: uncheck the check box and click finish

 

 

 

 

As shown in the figure below, at this point, a project is created. The first time the project is created, you will find it stuck in the startup interface below. Wait for a while

 

 

As shown in the figure below, the project is opened and click close

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

Download the generated apk file to the mobile phone, the display effect is as follows:

"Finish"

 

supplement:

Steps of adding Android SDK in AS software:

Open AS software, SDK Manger in Android in tools.

Next click Edit

 

Install in the newly created sdk folder, click next, and finally finish, return to the previous page (adk chooses the installation page)

 

Back to this page

 

Select the download content, the space is large from 4.4, and the space is not large from 5.0 and click OK

Continue OK.

 

 

Next download after selecting Accept.

After the installation is complete, click finiah

The rendering after installation is as follows

After completion, there will be automatic updates under the software.

 

note:

When connecting with the phone, you must first select a developer option in the phone settings and grant permissions.

Original link: https://blog.csdn.net/xuw_xy/article/details/89524335

Guess you like

Origin blog.csdn.net/qq_26280383/article/details/114371802