1. Configure the Android environment variables, make sure that adb is connected and available
2, start the emulator, enter adb devices through the cmd command line window, the device information appears, the device information is The device ID of the emulator
p>
3. Enter the APP storage directory: D:\workspace\RentalBayUITest\apps
4. Use the adb command to install the APP and it will be automatically installed on the virtual device: adb install -r rent_test_v1 .4.0.apk, add the -r parameter to overwrite the installation, and the installation is successful.
5, adb devices view, there are multiple devices, install APP for the specified device, adb -s device UID install -r APP such as: cd into the APP directory, execute the command: adb -s f223413 install- r rent_test_v1.4.0.apk
< img alt="share picture" src="/wp-content/uploads/images/mobile/android/1626792371819.png" >