native-run: native run android --list not showing device
Hi. So because of updating the ionic cli to 5.0.0 native-run is required. I have been trying to run the following command :
$ ionic cordova run android --device
In short, it kept trying to open the Emulator rather than use my device, I checked native-run android --list, but the device was not appearing, however, it is appearing in adb devices.
I am able to get around running it with the --no-native-run
flag, however, thought I’d post an issue as the device doesn’t seem to be appearing in the native-run list at all.
For reference, the phone I’m using is a Samsung A40.
$ native-run android --list
Connected Devices:
No connected devices found
Virtual Devices:
Pixel 2 API 28 (API 28) Pixel_2_API_28
$ adb devices
List of devices attached
R58M38D7HZR device
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 16 (4 by maintainers)
I’m facing the same issue (#22). You can run with the
--no-native-run
flag, like
ionic cordova run android --no-native-run
At least for me it worked, instead of downgrading.
Thanks! Looks like an issue with the parser and Windows EOL (
\r\n
). Fixing that. Is anyone getting this issue who’s not on Windows?Okay, marking this as done! Please update native-run to 0.2.1 and devices should be listed.
For anyone not on Windows, please create a new issue! 👍
Thanks everyone!
Hey all, I have the same issue.
@dwieeb - Here is my output (I hope it helps):
I had the same problem in my ubuntu 18.04 solved by the following steps:
vim ~/.profile
insert below lines to the end of the fileexport ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools
Now save the file and run another command:
source ~/.profile
Problem solved
@dwieeb Will do first thing tomorrow!
Hi, i have some problem, i’ve downgrade ionic-cli and everything is working again
$ npm i -g ionic@4.12.0