Download and install android studio and create the first android project (tested by emulator and real machine)

1. Download

2. Installation

  1. Java JDK must be installed before installing Android Studio, click https://zjj0707.blog.csdn.net/article/details/113444637 to view the download installation tutorial
  2. Double-click to download the file of android studio, enter the installation interface, click "next" to enter the next step.

Insert picture description here

  1. The latest version of Android Studio does not have an option to install the SDK at this step. You need to install it in the subsequent steps. In this step, you only need to tick all of them and click "next".

Insert picture description here

  1. To choose the installation path, just change the C drive to a non-system drive. Others do not need to be modified. If you must modify it, the path should not contain special characters, Chinese

Insert picture description here

  1. Click install

Insert picture description here

  1. After the installation is complete, click "Next".

Insert picture description here

  1. Click "Finish" and run Android Studio

Insert picture description here

  1. This step is to ask us whether to import the previous settings. If you have installed Android Studio before, you can choose the first one to import the previous settings. Here we do not import the previous settings, select the second one, and click "OK".

Insert picture description here

  1. Select "Don't send"

Insert picture description here

  1. Select "cancel", install AS for the first time, after startup, it is detected that the computer does not have SDK

Insert picture description here

  1. Enter the welcome interface and click "Next" directly

Insert picture description here

  1. Choose the second one and enter the personalized settings

Insert picture description here

  1. Choose a color you like, then click "Next"

Insert picture description here

  1. Check all the boxes in the picture (you can download them if you don’t check them, but for convenience, we check them all here), and choose a location where you want to install the SDK and other files (note: change the drive letter to a non-system drive) Yes. Files will be downloaded during the process, so be sure to connect to the Internet)

Insert picture description here

  1. The allocation of memory, the default 2G is fine, or it can be increased at will

Insert picture description here

  1. Click "Finish" to download

Insert picture description here

  1. The installation is complete:

Insert picture description here

Three. Create the first android project

  1. Choose Create

Insert picture description here

  1. Choose an empty layout

Insert picture description here

  1. Take your own project name

Insert picture description here

  1. Choose close

Insert picture description here

  1. Simply modify the content in the TextView

Insert picture description here

4. Pass the simulator and real machine test

First create an android machine through AVD manager and then pass a third-party emulator and real machine test ( android studio emulator test experience is not good, so choose a third-party emulator )

  1. Open emulator management

Insert picture description here

  1. Create Virtual Device Create an emulator

Insert picture description here

  1. Select a device, click next
    Insert picture description here

  2. Choose a system image file, that is, choose the version of the Android system, you can choose your own, and then click "Download" to download
    Insert picture description here

  3. Agree to the agreement

Insert picture description here

  1. Click next

Insert picture description here

  1. You can modify the simulator name and directly Finish
    Insert picture description here

Use a third-party simulator (lightning simulator) to test

  1. Download link: https://pan.baidu.com/s/1ShCufRfcaYHfBYkOz86ooA (Extract code: z4tc)
  2. android studio connects thunderbolt simulator
  • Open the lightning simulator
  • Press win+Rj to open the command line and enter cmd, enter the installation directory of the lightning simulator, and enter adb connect 127.0.0.0:5555
  • Reopen android studio and run the program

Insert picture description hereInsert picture description here

Use real machine test

  1. USB connection to the real machine, open the developer option of the mobile phone, because the opening methods of each mobile phone manufacturer are different (find Du Niang yourself)
  2. Enter the developer options, turn on USB debugging, some phones also need to turn on USB installation

Insert picture description here

  1. After inserting the USB data cable connection, click the run of the android studio menu item, and select the corresponding device in the select device

Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_42768634/article/details/114848057