Capacitor device list empty

Hi there!
When I try to run my app, I get this output:

$ ionic cap run android
[ERROR] No devices or emulators found

My phone is connected, verified using

$ adb devices
List of devices attached
42000768dc092300	device

Idk how to solve this, so I really hope someone else knows how.
Thanks in advance!

Does it show up as a device in Android Studio? I always start there. If it shows up there, it should show up when running cap run.

Yes, the device is shown in android studio.

Well, my capcitor.config.json was empty. I fixed it, now it recognizes my device.

1 Like