Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is Android executable snap path in Ubuntu?

I need to find Android executable path for my Ionic Apps, I have Android installed with snap in Ubuntu, and in Glances result I can read this :

 PID 302   /snap/android-studio/84/android-studio/jre/bin/java -classpath

But these folders are empty, the command line is :

npx cap open android

And I get this :

[info] Opening Android project at /home/phobos/dev2/reactjs/iotabreact/android
[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"
}

Thanks for any help.

like image 745
hexphp111 Avatar asked Feb 25 '26 21:02

hexphp111


1 Answers

I found it now :

"linuxAndroidStudioPath": "/snap/bin/android-studio",
like image 122
hexphp111 Avatar answered Feb 27 '26 14:02

hexphp111



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!