android studio 在从 npx 启动后在 linux 崩溃
android studio crashing on linux after being launched from npx
当我键入:npx cap open android
我收到以下错误:
[info] Opening Android project at: android.
node:events:368
throw er; // Unhandled 'error' event
^
Error: spawn /home/dan/android-studio EACCES
at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -13,
code: 'EACCES',
syscall: 'spawn /home/dan/android-studio',
path: '/home/dan/android-studio',
spawnargs: [ '/home/dan/dev/project/android' ]
}
我检查了权限,尝试了 SUDO 并尝试了 setting/unsetting 通常的环境变量。我认为这可能会导致其他问题。
我是运行linux薄荷
您必须指向实际的 android Studio 可执行文件(.sh 文件),而不是指向 Android Studio
所在的文件夹
当我键入:npx cap open android
我收到以下错误:
[info] Opening Android project at: android.
node:events:368
throw er; // Unhandled 'error' event
^
Error: spawn /home/dan/android-studio EACCES
at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -13,
code: 'EACCES',
syscall: 'spawn /home/dan/android-studio',
path: '/home/dan/android-studio',
spawnargs: [ '/home/dan/dev/project/android' ]
}
我检查了权限,尝试了 SUDO 并尝试了 setting/unsetting 通常的环境变量。我认为这可能会导致其他问题。
我是运行linux薄荷
您必须指向实际的 android Studio 可执行文件(.sh 文件),而不是指向 Android Studio
所在的文件夹