Install Android Studio
Click the link to enter the download: Android Studio download address
click to download
Click android-studio-2021.2.1.16-windows to install
Enter the installation and click Next
The default settings do not need to be changed, click Next
Change the installation location: D:\Android\Android Studio
Default settings, click Install
start installation
Start Android Studio, first see the squirrel interface
Select [Do not import settings] radio button (do not import previous settings) and click OK
Click Cancel
Click Next
Select the type of installation, select Custom installation
Default JDK location
Choose a personal preference interface'
Create a D:\Android\SDK location yourself
Here you can set the default emulator settings. If your computer memory is large enough, you can also set the emulator memory to be larger.
Check whether the settings meet the requirements. If you need to modify it, you can return to the previous step. If there is no problem, click Next
Accept the license agreement
Wait patiently for the component download to complete
Click Finish
to display the welcome window
Click【Customize】and then click All settings...
Set your favorite theme
Set the mouse to adjust the font size of the editor
Check the [Change font size with Ctrl + Mouse Wheel] check box
Set the editor font, font size and line spacing
Set the character encoding of the file, here uniform UTF-8 character encoding
Set up automatic import Tick the two check boxes on the picture shown
Do not check the [Match case] check box here
Set the file header File Header, so that every time a new class is created, the set document comments will be automatically added
Click OK
Download the Android SDK using the SDK Manager
Download the specified version of the Android SDK (33, 32) and continue to click the [OK] button
Click【OK】
Click the [OK] button to confirm the change.
If you need other versions of the SDK, you can enter the main window of Android Studio and choose to install other SDK versions as needed.
Start Virtual Device Manager
and click Create virtual device
Select a device - Phone - Pixel 4
Download the selected system image - API 33
Download the selected system image - API 33
Click Next
Click finish after loading is complete
Click the Next button to set the virtual machine in the virtual device configuration dialog box
Click Finish
Start the virtual machine
Create an Android application
Click the [New Project] button
Template selection "Empty Activity"
Set the project name, package name (all lowercase), save location, language (Java), minimum SDK
Click the Finish button to download the build tool Gradle compressed package, the process is very long, you need to wait patiently
Currently only created a virtual machine Pixel 4 API 33, click the run button of the green triangle
View the program running results on the virtual machine
For real device testing, connect the mobile phone to the computer with a data cable, and enable USB debugging mode in the mobile phone developer options