ionic-team / vscode-extension

15 stars 0 forks source link

Android Studio launch when installed trough Jetbrains toolbox fails #113

Closed jensbroecher closed 1 year ago

jensbroecher commented 1 year ago

When Android Studio is installed trough the Jetbrains toolbox, it is placed in a folder instead of the Applications root. The extension can't find it in this case. If copied to the root folder, it works, but this breaks the update functionality of Jetbrains toolbox.

dtarnawsky commented 1 year ago

Hi @jensbroecher,

I tried to work out where Jetbrain Toolbox installs Android Studio and it seems its in a path like: /Users/damian/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/222.4459.24.2221.9971841

The ch_0 is really dependent on how many installations of Android Studio you may have installed with their tool and the second folder I couldn't work out the reasoning behind this.

To let Capacitor know where Android Studio is located you can set an environment variable CAPACITOR_ANDROID_STUDIO_PATH to match where JetBrains Toolbox installed it.

After setting this both Capacitor CLI and the VS Code extension will work.

dtarnawsky commented 1 year ago

Marking this issue as can't fix as the Jetbrains Toolbox doesn't provide information about what Android Studio versions are installed and where and which one is associated with a particular project.