question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: ERR_NO_DEVICE: with cli 5.0.1

See original GitHub issue

Bug Report

Ionic version:

[x] 4.x

Current behavior:

Ever since upgrading to ionic cli 5 running my ionic app on my Android device is nearly impossible as I consistantly get the error

[native-run] ERR_NO_DEVICE: No hardware devices found. Not attempting emulator because --device was specified.

I am not sure if this is a ‘native-run’ issue but since i need it to launch the app on the Android device I thought here was the more appropriate.

I have had to go back to cli 4. so I can launch the app.

Expected behavior:

for my app to launch natively

Steps to reproduce:

$ ionic cordova run android --device --livereload Related code:

insert short code snippets here

Other information:

Ionic info:

Ionic:

   Ionic CLI                     : 5.0.1 (/Users/user/.nvm/versions/node/v12.1.0/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.4.2
   @angular-devkit/build-angular : 0.13.9
   @angular-devkit/schematics    : 7.2.4
   @angular/cli                  : 7.3.9
   @ionic/angular-toolkit        : 1.4.1

Cordova:

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

Utility:

   cordova-res : not installed
   native-run  : 0.2.2

System:

   Android SDK Tools : 26.1.1 (/Users/user/Library/Android/sdk)
   ios-deploy        : 1.9.4
   NodeJS            : v12.1.0 (/Users/user/.nvm/versions/node/v12.1.0/bin/node)
   npm               : 6.9.0
   OS                : macOS Mojave
   Xcode             : Xcode 10.2.1 Build version 10E1001

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:23 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
imhoffdcommented, Jun 13, 2019

Oh, so it’s finding the device (bq Aquaris U2 Lite (API 25) UN045654), I assume that’s the target you wish to deploy to.

Could I also see the verbose logs for [native-run] when you try to use ionic cordova run android --device --livereload --verbose ?

Please also make sure you’re on the latest version of native-run, there’s been a few updates to both Android and iOS: npm i -g native-run@latest

2reactions
ctfranciacommented, Jun 6, 2019

Let me try those things. have tried. I updated to 0.2.3 and it still didn’t launch. Then without touching my phone or adjusting the cables or resetting the connection I did: $ ionic cordova run android --device --livereload --no-native-run and that worked. 🤔

also, Android Studio did detect the phone was connected.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Impossible to serve with Node v17.0.1 · Issue #6770 - GitHub
I just uninstalled @vue/cli 4.5.15 and installed @vue/cli 5.0.0-rc.0 and am getting the error, under NodeJS 17.0.1.
Read more >
npm - Command not found with vue-cli - Stack Overflow
npm run serve yarn run v1.22.10 $ vue-cli-service build --mode development --watch ERROR Error: Cannot find module 'vue-template-compiler/package.json'.
Read more >
CSCue40117 - N5K may experience unexpectedly ... - Cisco Bug
Symptom: N5K may experience reboot when issuing show tech. LLDP core file will be captured after the reboot. show system reset-reason ...
Read more >
CMS CLI bug fixes and a consistency tweak
2.1) contains a couple of bug fixes and changing how we refer to individual HubSpot accounts using the CMS CLI (Command Line Interface)....
Read more >
bug #53938, Windows Octave doesn't wait for...
The issue that motivated this report is that certain packages would fail to install correctly on stable. I suppose if there is a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found