1. Install jdk1.7 or above,android studio integrated development environment

(1) Install and check jdk1.8, as shown in Figure 1.1

Figure 1.1 Configuration completed verification

(2) Start to install android studio integrated development environment,Installation allows to run in administrator mode,As shown in Figure 1.2

Figure 1.2 Installation interface

(3) The installation location is f:\ studio \ android-studio-ide-192.6200805-windows, install it,As shown in Figure 1.3

Figure 1.3 Installation position

(4) Android studio integrated development environment installation is complete,As shown in Figure 1.4

Figure 1.4 Installation completed interface

(5) Continue to configure android studio;Tick ​​start android studio, then click finish to start androidstudio, the following figure 1.5 appears

Figure 1.5 Configuration Interface

(6) Select the second item,Then click ok, the following startup interface appears,As shown in Figure 1.6

Figure 1.6 Startup interface

(7) Figure 1.7 interface pops up at startup, click cancel

Figure 1.7 android studio first run

(8) Entered the installation wizard interface of android studio,As shown in Figure 1.8

Figure 1.8 Installation Wizard Interface

(9) Select custom, you can change the position later,As shown in Figure 1.9

Figure 1.9 install type interface

(10) Click next to enter the UI selection interface,Here select the darcula style, as shown in Figure 1.10

Figure 1.10 Select theme interface

(11) Install SDK, the installation location is f:\ androidsdk, as shown in Figure 1.11

Figure 1.11 SDK installation interface

(12) Confirm the SDK installation path,After clicking finish, the SDK will be downloaded automatically (note that the computer needs to be connected at this time), as shown in Figure 1.12

Figure 1.12 SDK installation confirmation interface

(13) At this point, the installation and configuration are all completed.Enter the welcome screen,As shown in Figure 1.13

Figure 1.13 Welcome screen

2. Create an application development project through android studio,Understanding the project structure

(1) Create an android project, select basic activity, as shown in Figure 2.1

Figure 2.1 Create Project

(2) Enter the project name,Select sdk4.4 and storage path,As shown in Figure 2.2

Figure 2.2 Setting related content

(3) Enter the project editing interface,As shown in Figure 2.3

Figure 2.3 Editing interface

(4) The code and layout are shown in Figure 2.4

Figure 2.4 shows both code and layout

3. Install and debug the project through the simulator or real machine (mobile phone, etc.)And modify the main interface information

(1) Click on the mobile phone icon framed by the red frame.As shown in Figure 3.1

Figure 3.1 Create Simulator

(2) Create simulator avd, select create virtual device, as shown in Figure 3.2

Figure 3.2 Create Simulator Interface

(3) Select the simulator avd size as phone—pixel 2—5.0 inch, as shown in Figure 3.3

Figure 3.3 Select size interface

(4) Select download oreo 27 to download,As shown in Figure 3.4

Figure 3.4 Select Simulator Interface

(5) Select accept to download,As shown in Figure 3.5

Figure 3.5 Agree to download interface

(6) Name the simulator as myphone2 api 27, vertical screen, click finish, as shown in Figure 3.6

Figure 3.6 Name Simulator Interface

(7) Run the downloaded simulator,As shown in Figure 3.7

Figure 3.7 Select Simulator Interface

(8) The mobile virtual device interface appears.As shown in Figure 3.8

Figure 3.8 Phone Virtual Device Interface

  • Previous Detailed implementation method of dynamic array of Java packaged array
  • Next Detailed Django custom permission management system (through middleware authentication)