CAPACITOR_ANDROID_STUDIO_PATH 1

CAPACITOR_ANDROID_STUDIO_PATH

echo export CAPACITOR_ANDROID_STUDIO_PATH="custom-path/android-studio/bin/studio.sh" >> ~/.bashrc
source ~/.bashrc
ionic cap open android

Here is what the above code is Doing:
1. It’s creating a new file called ~/.bashrc
2. It’s adding a new line to that file that sets the path to Android Studio
3. It’s sourcing the ~/.bashrc file so that the new path is available in the current terminal session
4. It’s opening Android Studio

If you’re using a Mac, you can use the following commands instead:

touch ~/.bash_profile
echo export CAPACITOR_ANDROID_STUDIO_PATH=”custom-path/android-studio/bin/studio.sh” >> ~/.bash_profile
source ~/.bash_profile
ionic cap open android

Similar Posts