Error: adb: Command failed with exit code ENOENT

I get this error while trying to emulate my app.
I add platform : ionic platform add android
I build : ionic build android
All works right but when i try to emulate : ionic emulate android
I get :
Running command: /home/ryuk/Development/mobileApp/hooks/after_prepare/010_add_platform_class.js /home/ryuk/Development/mobileApp
add to body class: platform-android
ANDROID_HOME=/home/ryuk/android-sdk-linux
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
Error: adb: Command failed with exit code ENOENT

How can i solve this? Thanks

Hi, did you find any solution?

Hi there,

I get the same error trying to emulate with: ionic run android

Anyone manage to solve this? Terminal output below:

BUILD SUCCESSFUL

Total time: 1.161 secs

Built the following apk(s):
/Users/me/Desktop/Ionic/SecondApp/platforms/android/build/outputs/apk/android-debug.apk

ANDROID_HOME=/Users/me/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home

Error: adb: Command failed with exit code ENOENT

I’ll bump the thread with the same problem when I issue:
> ionic run android

Error: adb: Command failed with exit code ENOENT

It’s specific to a single project. Generating a blank project and issuing the same command results in the application being deployed to the attached tablet.

This indicates the the problem isn’t configuration or environment.

The verbose version of the error is:
Error: adb: Command failed with exit code ENOENT
at ChildProcess.whenDone (…project/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at emitOne (events.js:96:13)
at ChildProcess.emit (events.js:188:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:213:12)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)

So far I’ve tried purging www, .tmp and node_modules then reinstalling and rebuilding.

Any suggestions or insight would be appreciated.