My referance tutorial is this official tutorial.
I’m on Ubuntu 20.04 up-to-date. Android Studio installed as a snap package and it’s running perfectly. adb server is on and detecting my phone. My phone’s development mode is enabled as well as USB installation. My app runs perfectly on both VM Android and my physical phone through Android studio.
But the problem I’m having that the
ionic cap run android -l --external command returns an empty list.
ionic capacitor run android --list command returns
[INFO] No native targets found..
I’ve tried with both Android Studio’s adb and Ubuntu’s official repo adb but ended up with no luck. I’ve also tried to run
ionic cap run android -l --external with
CAPACITOR_ANDROID_STUDIO_PATH=/snap/android-studio/current/android-studio/bin/studio.sh environment as I did at
ionic cap open android command but that didn’t help either.
I’ve also tried several combination while app running on my phone through Studio. But none of those combinations worked.
What am I missing?