Capacitor: Cannot read properties of undefined (reading 'value')



ionic capacitor run android

I get:

Which device would you like to target? (Use arrow keys)

But it does not show anything. So:

TypeError: Cannot read properties of undefined (reading 'value')

I have android studio in the SO. Why it start showing this output?

Update @ionic/cli to 6.20.4

But that will only tell you it’s not finding devices or emulators instead of that error, your problem is no devices or emulators are found. To run, you’ll have to plug some device or create some AVD emulator.