Hi kind strangers,
when doing npx cap open android
on Manjaro (Arch) I get:
[x@x x]$ npx cap open android
[info] Opening Android project at: android.
node:events:368
throw er; // Unhandled 'error' event
^
Error: spawn /opt/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 /opt/android-studio/',
path: '/opt/android-studio/',
spawnargs: [
'/home/x/custom/git/x/x/android'
]
}
Running android-studio
from the same user does work.
Did nothing funny to install Android Studio.
Normal pamac install from AUR stable.
Did chmod 777 -R /opt/android-studio/
to no avail.
[x@x x]$ ls -la /opt/android-studio/
total 60
drwxrwxrwx 7 root root 4096 5. Okt 17:13 .
drwxr-xr-x 13 root root 4096 7. Dez 15:50 ..
drwxrwxrwx 4 root root 4096 5. Okt 17:12 bin
-rwxrwxrwx 1 root root 27 5. Okt 17:10 build.txt
drwxrwxrwx 6 root root 4096 5. Okt 17:12 jre
drwxrwxrwx 5 root root 16384 5. Okt 17:12 lib
drwxrwxrwx 2 root root 4096 5. Okt 17:12 license
-rwxrwxrwx 1 root root 11352 5. Okt 17:10 LICENSE.txt
drwxrwxrwx 57 root root 4096 5. Okt 17:13 plugins
-rwxrwxrwx 1 root root 418 5. Okt 17:10 product-info.json
I’ll do it now in a fresh install vm.
Maybe anyone instantly knows?
ionic info
[x@x x]$ ionic info
Ionic:
Ionic CLI : 6.18.1 (/home/x/.nvm/versions/node/v16.13.1/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.0.0
@angular-devkit/build-angular : 12.0.5
@angular-devkit/schematics : 12.0.5
@angular/cli : 12.0.5
@ionic/angular-toolkit : 5.0.0
Capacitor:
Capacitor CLI : 3.3.3
@capacitor/android : 3.3.3
@capacitor/core : 3.3.3
@capacitor/ios : 3.3.3
Utility:
cordova-res (update available: 0.15.4) : 0.15.3
native-run : 1.5.0
System:
NodeJS : v16.13.1 (/home/x/.nvm/versions/node/v16.13.1/bin/node)
npm : 8.1.2
OS : Linux 5.10
Thank you for your time!