I am new to ionic and I am trying to run a sample app of ionic on my phone (Samsung Galaxy s4) and I am unable to do so. I already have "USB Debugging"
on in Developer Options.
As seen above even though my phone is connected it runs on emulator. The app works on emulator without an issue
When I do
$ionic run android
In logs says:
No target specified and deploying to emulator
The emulator comes up and has no issues in running the app.
Then I tried
$adb devices -l
Its shows my device XXX
listed there
Now I try running
$ionic run --devices
Its says : Unknown platform : XXX
I tried
$ionic run -d 'XXX'
It throws error
CordovaError: Unknown platform : XXX at cli .....
I even tried by defining a run config file specifying the target, however the results are similar. It throws error at q.js throw e;
Target 'XXX' not found, unable to run project.
Can somebody please advise what step I have missed?