- Get link
- X
- Other Apps
- Get link
- X
- Other Apps
Hi, anyone, I'm back from long terms of innovative job and now i'm free to write my stuff from my experiences again, this is short thread about an error of ionic project with cordova and android but it's end up like this "UnhandledPromiseRejectionWarning: Error: spawn EACCES".
From terminal of my mac like cmd of windows, here are the result.
ANDROID_HOME=/Users/poraweeraksasin/AndroidSDK
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
(node:16497) UnhandledPromiseRejectionWarning: Error: spawn EACCES
at _errnoException (util.js:1022:11)
at ChildProcess.spawn (internal/child_process.js:323:11)
at Object.exports.spawn (child_process.js:502:9)
Type this command on terminal to change permission to gradle file in your path and don't forget to change to your gradle version in your Android Studio path.
sudo chmod 777 "/Applications/Android Studio.app/Contents/gradle/gradle-4.4/bin/gradle"
Then from terminal type this command again, it should be work like a charm.
cordova build android
I don't know why this error doesn't make sense of error message but hopefully next version could be tell us directly what happen and what should be fix. See you next thread :)
Comments

Great Article
ReplyDeleteData Mining Projects
Python Training in Chennai
Project Centers in Chennai
Python Training in Chennai