Where does ionic look for android studio?

Opening the capacitor android project always starts Android Studio 3.5.x. This is outdated and creates a gradle sync issue.

How does Ionic open Android Studio? How can I change the path?

For other projects, I’m using an Android Studio installed with the Jetbrains Toolbox. When running studio in the terminal, this is the Android Studio that opens. But it’s the latest version 3.6.3 and not the same studio that Ionic uses.

I’ve checked .bashrc but can’t find anything. The Android SDK is on the path, but doesn’t seem to contain another Android Studio.

This can be specified in the capacitor.config.json, like this:


By default it looks for usr/local/android-studio. In this directory was indeed an old installation.

1 Like