Android installation tutorial Android studio and the first program running

1. Download android studio

Log in to Android
official website to download Android studio official website link: Android official website

Insert picture description here

2. Installation

Click next

Insert picture description here

Click next

Insert picture description here

Just choose the default location

Insert picture description here

Click install

Insert picture description here

3. Configure SDK

Open andorid studio

Insert picture description here

Before you see the interface below, just close or cancel the rest

Insert picture description here

Click Settings

Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here

Insert picture description here

Just turn off after downloading

4. Configure the javase jdk environment

Download jdk
portal: click here to download

Insert picture description here

Insert picture description here

It seems that you need to register an Oracle account. Forget it, connect to Baidu Cloud (java jdk1.8) Portal: Click here to download, extraction code: 0731

Regarding the installation of jdk, just install it directly after downloading. If you have studied java before, you don’t need to reinstall it.
Configure the java jdk portal: click here

The last step is to configure jdk environment variables to check whether the environment variables are configured successfully

Insert picture description here

enter java -version

Insert picture description here

If the content in the red box appears, it proves that the jdk installation is successful. Note: The current android studio SDK does not need to configure environment variables, haha

5. The last step before running the first program

Insert picture description here

This step is to download the virtual machine. Note: This only applies to CPUs of Intel type. If it is AMD’s CPU, you need to download two other software

Insert picture description here

6. Run the first helloworld program

Insert picture description here

Just pick one

Insert picture description here
Insert picture description here

The creation process is a bit slow, wait patiently (this is not the slowest yet!)

Insert picture description here
It was a bit slow the first time, and I had to wait for all the circles to finish.
Insert picture description here

However, you will find a big problem here. The download speed of the file named "gradle-6.1.1-all" is almost zero. When it is downloaded, the University of Petroleum has become a world-class university. In order to save everyone's time, I To change the method, you can directly hit the cross, close the download box, and then close andorid
studio

Insert picture description here

7. Download a compressed package

Portal: Click here to download: Extract code: 0731
Copy here, no need to unzip

Insert picture description here

Then open andorid studio, and create a new project

Insert picture description here

When all the circles are finished,

Insert picture description here

If the lap is slower, please wait patiently (don’t worry within five minutes) If it succeeds, the run button will turn green

Insert picture description here

Click to run and wait for the circle to finish

Insert picture description here

8. The first program helloworld runs successfully!

Insert picture description here

Today I finished my blog and went out and saw a double rainbow!

Insert picture description here

If you have any other questions, please discuss it in the comment area. See you

Guess you like

Origin blog.csdn.net/qq_43475285/article/details/107703036