IDEA's first Android project

1. JDK and SDK installation and configuration

JDK installation omitted. IDEA has done JAVA projects based on the main.
SDK download link:
https://www.androiddevtools.cn/

Insert picture description here

SDK installed or unzipped

Insert picture description here

Double click SDK Manager.exe

Insert picture description here

Fill in the content below

mirrors.neusoft.edu.cn
80

Insert picture description here

Select install

Insert picture description hereInsert picture description here

Insert picture description here

Click on Install xx packages...

Insert picture description here

Then click Install

Configure environment variables

Insert picture description hereInsert picture description here

cmd port to check whether the installation is successful.

adb version

Insert picture description here

Add SDK to IDEA configuration

Insert picture description here

After confirming the selected path, click Apply OK.

2. Install SDK through IDEA itself

Select New Project Android and
click on the only button to install. After selecting the path, the next step will start to download and install. Finish
after installation

Install other versions as shown below:

Insert picture description here

3. Build and run the project

3.1 Setting up the project

Insert picture description here
Insert picture description here

3.2 Create AVD

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

3.3 Operation

Insert picture description hereInsert picture description here
Insert picture description here

References:
[1]: https://www.cnblogs.com/gufengchen/p/11038029.html
[2]: https://blog.csdn.net/qq_25189723/article/details/105544036
[3]: https ://blog.csdn.net/weixin_36785944/article/details/83659165
[4]: https://blog.csdn.net/u013905744/article/details/82223969

Guess you like

Origin blog.csdn.net/YKenan/article/details/111240285