Run the project to the built-in simulator and real machine

1. Run to the built-in simulator

Andriod Studio creates a simulated device

Choose the device type and size you want to create

Select the kernel you want to install to the simulated device (download if not)

Configure the parameters for creating a simulated device (generally, the default is fine)

Multiple simulated devices can be created

run project

2. Run to the real machine

  1. Find a data cable and connect your phone to your computer (or via wifi).

  1. install driver.

  1. Turn on the debugging mode of the mobile phone, which is off by default. Different mobile phones have different opening methods, but basically the same. You click the Android version in the settings three to four times in a row, and you will be prompted to enter the developer mode.

  1. Enable developer mode.

  1. When running the project, select the real device loaded in it. (can be used with screencasting tools)

Guess you like

Origin blog.csdn.net/2301_76354366/article/details/129171723