当我输入: 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 并尝试设定/取消设定通常的环境变量。我认为这可能会导致其他问题。
我正在运行 linux mint
uj5u.com热心网友回复:
您必须指向实际的 android studio 可执行档案(.sh 档案),而不是指向 Android Studio 所在的档案夹
0 评论