ionic-cli: "WARNING: No target specified" error when running "$ ionic run android"
Hi everyone,
I followed all the suggestions in issue #179 but still get the error below
when I run $ ionic run android
Running command: /Users/drsedusa/Desktop/temp/my_app/hooks/after_prepare/010_add_platform_class.js /Users/drsedusa/Desktop/temp/my_app
add to body class: platform-android
Running command: /Users/drsedusa/Desktop/temp/my_app/platforms/android/cordova/run
WARNING : No target specified, deploying to emulator
WARNING : no emulator specified, defaulting to AVD_for_s4
I can’t seem to figure out why I get the WARNING: No target specified error message even though my platforms/android folder seems complete.

Below is a copy of my system info.
$ ionic info
Your system information:
OS: Mac OS X Yosemite
Node Version: v0.10.30
Cordova CLI: 4.2.0
Ionic CLI Version: 1.3.2
Xcode version: Xcode 6.1.1 Build version 6A2008a
ios-sim version: 3.0.0
I’d really appreciate the help figuring out what’s going on. Thanks!!
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 21
When you run
ionic run android- it is trying to run the application on a simulator or a device. If there is not a simulator or device running, you will most likely get that error.For me killing and restarting adb server solved the issue
adb kill-serveradb start-server@satish11nov , I had the same issue. The problem is that you have to set up an AVD for the android and install the USB drivers. I didn’t listen to the directions they gave for me, instead I ran the AVD Manager in the android-sdk folder.
Here are the references I used to get rid of that error you had: http://developer.android.com/tools/devices/managing-avds.html and you also need to enable debugging on the phone: http://developer.android.com/tools/device.html#setting-up