Capacitor: Automatic detection of Android Studio on linux

Created on 25 May 2018  路  9Comments  路  Source: ionic-team/capacitor

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

enhancement good first issue help wanted

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)

All 9 comments

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?

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danielsogl picture danielsogl  路  3Comments

stripathix picture stripathix  路  3Comments

stripathix picture stripathix  路  3Comments

peterpeterparker picture peterpeterparker  路  3Comments

daniel-lucas-silva picture daniel-lucas-silva  路  3Comments