SOLVED: Can't run app on android: device not found


#1

SOLUTION: the only thing I forgot was going to developer options and enabling USB debugging itself (thought I did that several weeks ago already but it wasn’t enabled).

I tried running my app on an android galaxy S4. Running on iOS works fine, and the android emulator works as well. I’m having trouble getting the app to run on an actual android devices

What I did:

  • enable usb debugging on the android devices (tapping the build number 7 times)
  • run the command ionic run android --device
  • run adb devives (this shows: emulator-5554 device)
  • added android:debuggable attribute to the manifest file
  • when I plug in the device, android file transfer pops up with my folders on the device, so it’s definitely connected

I’m using a mac.

Thanks for helping out!

This is the output I get:

**ERROR: Failed to launch application on device: ERROR: Failed to install apk to device: ERROR: Failed to deploy to device, no devices found.**
    
    droid/cordova/run: Command failed with exit code 8
        at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/src/superspawn.js:126:23)
        at ChildProcess.EventEmitter.emit (events.js:98:17)
        at maybeClose (child_process.js:743:16)
        at Process.ChildProcess._handle.onexit (child_process.js:810:5)

#2

Hi,
How did you solve this trouble, I have the same trying to run on Nexus, I use have a mac also.

Thanks


#3

I use nexus + mac too
enable debugging mode on nexus
cmd: ionic run android --device
try to disconnect and connect usb again if it still can’t find device
Hope this help!


#4

I have had problem that I have got “device not found” after first working connection an next reconnection. I have found solution by closing chrome://inspect/#devices tam in chrome dev tools. Hope this help someone. Happy coding!

Credit: https://stackoverflow.com/a/36662403/861615