hexphp111
hexphp111

Reputation: 421

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.

Upvotes: 3

Views: 6851

Answers (3)

danielnaranjo
danielnaranjo

Reputation: 21

Here is /snap/android-studio/current/bin/studio.sh

Upvotes: 0

Krishan König
Krishan König

Reputation: 482

Next time use which app_name to find any app path e.g. which android-studio

Upvotes: 8

hexphp111
hexphp111

Reputation: 421

I found it now :

"linuxAndroidStudioPath": "/snap/bin/android-studio",

Upvotes: 10

Related Questions