Android development environment to build

table of Contents

1>Download and install Android Studio

2>Implement your first HelloWorld program


1>Download and install Android Studio

download link:

https://developer.android.com/studio

Check [Android Virtual Device]:

Select the installation directory:

Check [Do not import settings]:

Select [Don't send]:

Select [Cancel]

Select [Custom]:

Set the JDK path (that is, the default path, no need to change ):

Choose configuration:

Choose the memory according to the situation, it is best not to be less than 2G:

Precautions:

There may be errors during the installation process, it is recommended to open the VPN before installing!

2>Implement your first HelloWorld program

Select [Create New Project]:

Select [Empty Activity]:

Configuration items:

Precautions:

Gradle will be used when the project is created for the first time. It is recommended to turn on the VPN before configuring it!

After Gradle configuration is complete, click the small green hammer in the upper right corner:

Click [AVD Manager] in the upper right corner:

Click [Create Virtual Device]:

Select [Pixel 2] in Phone:

Click [Download] on the right side of Q:

Click [Finish]:

Click [Run]:

Successfully implement the HelloWorld program:

Guess you like

Origin blog.csdn.net/Kannyi/article/details/114260552