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!!
Do you have an android device attached or a simulator running?
Something like an AVD or Genymotion
@jbavari I do have Genymotion installed on my machine but I don't have it running nor do I have my Samsung Galaxy S2 attached. Thanks for the reply :smile: Still trying to figure out what's going on (scratching my head)....grrrr!
@jbavari Here's a log of all the steps I took...just created a new test project. Thanks for your help.
$ mkdir temp
$ cd temp/
$ ionic start new_app
Creating Ionic app in folder /Users/drsedusa/Desktop/temp/new_app based on tabs project
Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
[=============================] 100% 0.0s
Downloading: https://github.com/driftyco/ionic-starter-tabs/archive/master.zip
[=============================] 100% 0.0s
Update config.xml
Initializing cordova project
Fetching plugin "org.apache.cordova.device" via plugin registry
Fetching plugin "org.apache.cordova.console" via plugin registry
Fetching plugin "com.ionic.keyboard" via plugin registry
Your Ionic project is ready to go! Some quick tips:
* cd into your project: $ cd new_app
* Setup this project to use Sass: ionic setup sass
* Develop in the browser with live reload: ionic serve
* Add a platform (ios or Android): ionic platform add ios [android]
Note: iOS development requires OS X currently
See the Android Platform Guide for full Android installation instructions:
https://cordova.apache.org/docs/en/edge/guide_platforms_android_index.md.html
* Build your app: ionic build <PLATFORM>
* Simulate your app: ionic emulate <PLATFORM>
* Run your app on a device: ionic run <PLATFORM>
* Package an app using Ionic package service: ionic package <MODE> <PLATFORM>
For more help use ionic --help or visit the Ionic docs: http://ionicframework.com/docs
$ cd new_app/
$ ls
bower.json gulpfile.js ionic.project plugins www
config.xml hooks package.json scss
$ clear
$ ionic browser add [email protected]
Adding crosswalk browser
Downloading: https://github.com/driftyco/cordova-crosswalk-engine/archive/v0.8.zip
[=============================] 100% 0.0s
Downloaded cordova-crosswalk-engine
Downloading: https://github.com/driftyco/cordova-android/archive/crosswalk.zip
[=============================] 100% 0.0s
Finished downloading cordova-android v4.0.x
Altered permissions for Android Paths
Downloaded Cordova Android for Crosswalk
Downloading: https://download.01.org/crosswalk/releases/crosswalk/android/stable/10.39.235.15/arm/crosswalk-webview-10.39.235.15-arm.zip
Downloading: https://download.01.org/crosswalk/releases/crosswalk/android/stable/10.39.235.15/x86/crosswalk-webview-10.39.235.15-x86.zip
[=============================] 100% 0.0s
[=============================] 100% 0.0s
Downloaded Crosswalk webviews
Fetching Android SDK API 19.1.0
Downloaded Android runtime (API 19)
Removed old Cordova Android platform
Added Cordova Android 4.0
Added Crosswalk Webview Engine
Ionic Browser Add completed for Crosswalk
$ ionic run android
Running command: /Users/drsedusa/Desktop/temp/new_app/hooks/after_prepare/010_add_platform_class.js /Users/drsedusa/Desktop/temp/new_app
add to body class: platform-android
Running command: /Users/drsedusa/Desktop/temp/new_app/platforms/android/cordova/run
WARNING : No target specified, deploying to emulator
WARNING : no emulator specified, defaulting to AVD_for_s4
Waiting for emulator...
emulator: ERROR: This AVD's configuration is missing a kernel file!!
^C$
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.
I thought running ** ionic run android ** would launch the crosswalk browser or am I totally confused. Could you please explain how ionic's crosswalk implementation works.
I think you might be a bit confused on whats going on here.
Crosswalk is simply a browser that runs inside of an android app. Launching an android application has nothing to do with crosswalk. You must be running a device or simulator to 'run' an app.
Thanks for clearing this up for me. Appreciate it.
same issue here..i have device connected using usb debugging but getting below error message

@satish11nov solve u r issue?
that's issue can solve to install usb driver :)
@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
Thanks @alexsandracodes I definitely didn't know to do those steps you provided in the links, but I'm still getting this WARNING : No target specified, deploying to emulator and WARNING : no emulator specified, defaulting to Nexus5 where now it loads using my Nexus5 AVD. I've completed steps 2 and 3 from http://developer.android.com/tools/device.html#setting-up, but I don't know what to do with regards to step 1. Is the manifest file supposed to be in my ionic project?
@mtpultz I'm using Genymotion as the emulator. I got the same problem, than I realized that I had to:-
Please note that the error comes out because ionic can not find any emulator (which must be turned on, and USB Debugging enabled).
Hope it helps~
@helmiruza Geez, can you believe it just took a phone reboot...
@mtpultz So, you got it working now?
Hi @alexsandracodes, yes thanks :)
Restarting the devices works :)
i would write the same with @alswamy :)
althought the device is listed when you write adb devices, it cannot be accessed i think. I still see "No target found" message but though its working after restarting.
in my case I had to disable and reenable developer mode to recognize the connected device...
If it helps, I did adb kill-server, then adb start-server. I looked at adb-devices and the device was showing again and the app deployed. Just an alternative to either the two above solutions. Hope it helps someone too.
Disabling and then re-enabling developer options on the phone made it work again for me.
For me killing and restarting adb server solved the issue
adb kill-server
adb start-server
Most helpful comment
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.