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' its 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?
Hi first check your android-manifest.xml file of target android version if it is 22 means you need to download android sdk of 22.0 than your problem will solve