No target specified and no devices found, deploying to emulator

Real machine test: Huawei phone usb links to computer, developer mode opens,
command: adb devices cannot find device
command: cordova run android
prompt: No target specified and no devices found, deploying to emulator

(node:6132) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): No

emulator images (avds) found.

  1. Download desired System Image by running: "D:android-sdk_r24.4.1android-sdktoolsandroid.bat" sdk
  2. Create an AVD by running: "D:android-sdk_r24.4.1android-sdktoolsandroid.bat" avd

HINT: For a faster emulator, use an Intel System Image and install the HAXM device driver

clipboard.png

Aug.12,2021

everything is correct. Mobile developer mode has been turned on, and Baidu has found a lot of answers on Google. The answer is mainly in the developer options, select usb to configure, ptp usb verification application, including adb option, debugging should be opened, problem solved, thank you

Menu