IONIC – ERR_NO_DEVICE: No hardware devices found
Table of Content
IONIC - ERR_NO_DEVICE: No hardware devices found
IONIC - ERR_NO_DEVICE: No hardware devices found
Nhận dạng lỗi
Khi gọi chạy debug app trên virtual android thì gặp lỗi này
ionic cordova run android -l -c
Sửa lỗi
Lấy danh sách thiết bị
cd C:\Users\soiqu\AppData\Local\Android\Sdk\platform-tools
adb devices
Chạy với thiết bị chỉ định
# 2 Cách này không được
ionic cordova run android -l -c
ionic cordova run android --device
Cách ok
https://ionicframework.com/docs/cli/commands/cordova-run
ionic cordova run android --target=emulator-5554
Tham khảo thêm
List Device
https://ionicframework.com/docs/cli/commands/cordova-run
ionic cordova run android --list