npx cap open android
this command tries to open Android Studio on a default path but I've got this installed on a different location
Ok, found this:
https://github.com/ionic-team/capacitor/commit/f68ea10a1b3659e32d2029a771ba35fdfd96cd5f
Working now, but it's a bit annoying if we're working on different computers. There is no way to automatically find Android Studio like Cordova does?
Found this, we can try it https://github.com/apache/cordova-android/blob/master/bin/templates/cordova/lib/getASPath.bat
sounds nice. Let me know if it works
Me too for ubuntu
Android Studio installed from AUR on Arch Linux is also not detected.
The configuration option to override the install path only works on Windows.
@darrenmothersele the linux configuration option is linuxAndroidStudioPath, have you tried that one?
As the automatic detection is working on windows now and it's not a problem on macOS, edited the issue title for linux (but not sure if it's possible to detect it there)
@jcesarmobile sorry it took a while for me to respond. I stopped using my linux machine for daily development work and I'm back on my hackintosh - so was unable to test this.
I can confirm that setting linuxAndroidStudioPath does work correctly.
sorry, where can I see and edit the linuxAndroidStudioPath config? thanks
@gbhipolitoglyph linuxAndroidStudioPath is a key-value in your capacitor.config.json.
Most helpful comment
@darrenmothersele the linux configuration option is linuxAndroidStudioPath, have you tried that one?
As the automatic detection is working on windows now and it's not a problem on macOS, edited the issue title for linux (but not sure if it's possible to detect it there)