Ubuntu 中的 Android 可执行文件快照路径在哪里?

hex*_*111 0 ubuntu android path haskell-snap-framework ionic-framework

我需要为我的 Ionic 应用程序找到Android 可执行路径,我在 Ubuntu 中安装了带有snap 的Android ,在 Glances 结果中,我可以阅读:

 PID 302   /snap/android-studio/84/android-studio/jre/bin/java -classpath
Run Code Online (Sandbox Code Playgroud)

但是这些文件夹是空的,命令行是:

npx cap 打开 android

我明白了:

[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"
}
Run Code Online (Sandbox Code Playgroud)

谢谢你的帮助。

小智 8

下次用于which app_name查找任何应用程序路径,例如which android-studio


hex*_*111 5

我现在找到了:

"linuxAndroidStudioPath": "/snap/bin/android-studio",
Run Code Online (Sandbox Code Playgroud)