Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No hardware devices found #54

Closed
coloz opened this issue Jun 23, 2019 · 4 comments
Closed

No hardware devices found #54

coloz opened this issue Jun 23, 2019 · 4 comments
Labels

Comments

@coloz
Copy link

coloz commented Jun 23, 2019

Version:
0.2.6

Description:
The device could not be found,but using ionic cordova run android is all right.

Command Output:

2019-06-23T11:21:14.880Z native-run:android:utils:adb:getDeviceProperties Invoking adb: 'C:\\Users\\clz\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb' [ '-s', '573154575a563398', 'shell', 'getprop' ]
2019-06-23T11:21:15.060Z native-run:android:utils:adb:getDevices Found adb devices: [ { serial: '573154575a563398',
    state: 'device',
    type: 'emulator',
    connection: null,
    properties:
     { product: 'starqltezc',
       model: 'SM_G9600',
       device: 'starqltechn',
       transport_id: '2' },
    manufacturer: 'samsung',
    model: 'SM-G9600',
    product: 'starqltezc',
    sdkVersion: '28' } ]
2019-06-23T11:21:15.061Z native-run:android:utils:avd:getAVDINIs Discovered AVD ini files: [ 'C:\\Users\\clz\\.android\\avd\\Nexus_5X_API_23.ini',
  'C:\\Users\\clz\\.android\\avd\\Nexus_5X_API_28_x86.ini',
  'C:\\Users\\clz\\.android\\avd\\Nexus_5_API_22.ini',
  'C:\\Users\\clz\\.android\\avd\\Pixel_2_API_27.ini',
  'C:\\Users\\clz\\.android\\avd\\Pixel_2_API_28.ini',
  'C:\\Users\\clz\\.android\\avd\\Pixel_2_XL_API_26.ini' ]
2019-06-23T11:21:15.068Z native-run Caught fatal error: { Error: No hardware devices found. Not attempting emulator because --device was specified.
    at selectDevice (C:\Users\clz\AppData\Roaming\npm\node_modules\native-run\dist\android\run.js:82:19) code: 'ERR_NO_DEVICE', exitCode: 1, data: undefined }
ERR_NO_DEVICE: No hardware devices found. Not attempting emulator because --device was specified.

SDK Info:

Ionic:

   Ionic CLI                     : 5.1.0 (C:\Users\clz\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.3.0
   @angular-devkit/build-angular : 0.13.8
   @angular-devkit/schematics    : 7.2.4
   @angular/cli                  : 7.3.8
   @ionic/angular-toolkit        : 1.4.1

Cordova:

   Cordova CLI       : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms : android 7.1.4
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 33 other plugins)

Utility:

   cordova-res : not installed
   native-run  : 0.2.6

System:

   NodeJS : v10.15.1 (D:\Program Files\nodejs\node.exe)
   npm    : 6.4.1
   OS     : Windows 10
@coloz coloz added the android label Jun 23, 2019
@imhoffd
Copy link
Contributor

imhoffd commented Jun 24, 2019

@coloz What is the output of adb devices -l ?

@coloz
Copy link
Author

coloz commented Jun 25, 2019

@coloz What is the output of adb devices -l ?

List of devices attached
573154575a563398 device product:starqltezc model:SM_G9600 device:starqltechn transport_id:1

@coloz
Copy link
Author

coloz commented Jun 25, 2019

i use vscode cordova tools.
I found that when I chose Run Android on emulator, it would install APK on my real mobile phone and prompt me that the emulator could not be found.

@imhoffd
Copy link
Contributor

imhoffd commented Jun 25, 2019

@coloz Thanks. From the information given with adb devices -l, I can confidently say this is a duplicate of #42. I am making a release right now to address this issue.

@imhoffd imhoffd closed this as completed Jun 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants