This gist will solve the following problem:
[error] Unable to launch Android Studio. You must configure "linuxAndroidStudioPath" in your capacitor.config.json to point to the location of studio.sh, using JavaScript-escaped paths:
Example:
{
"linuxAndroidStudioPath": "/usr/local/android-studio/bin/studio.sh"
}
- Create directories:
sudo mkdir /usr/local/android-studio
sudo mkdir /usr/local/android-studio/bin
- Create soft link to studio.sh, where $ANDROID_STUDIO is the path where android studio is installed:
sudo ln -s $ANDROID_STUDIO/bin/studio.sh /usr/local/android-studio/bin/studio.sh
Reference: Capacitor CLI
worked for me, there changes in ionic 6 and "linuxAndroidStudioPath" didn't worked there. So passing android studio path is best way. Thank you sir