エラー:EACCEScordovaプラグインのスポーンソリューションの追加



Error Spawn Eacces Cordova Plugin Add Solution

Running command - failed! [ERROR] An error occurred while running cordova plugin add cordova-plugin-facebook4 --variable APP_ID=** -... (exit code 1): Installing 'cordova-plugin-facebook4' for android ANDROID_HOME=/Users/behrooz/Library/Android/sdk JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home Subproject Path: CordovaLib Failed to install 'cordova-plugin-facebook4': Error: spawn EACCES at exports._errnoException (util.js:1022:11) at ChildProcess.spawn (internal/child_process.js:313:11) at Object.exports.spawn (child_process.js:380:9) at exports.spawn (/Users/behrooz/git/Fitopedia/Fitopedia/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:134:31) at /Users/behrooz/git/Fitopedia/Fitopedia/platforms/android/cordova/lib/builders/GradleBuilder.js:261:16 at _fulfilled (/Users/behrooz/git/Fitopedia/Fitopedia/platforms/android/cordova/node_modules/q/q.js:854:54) at self.promiseDispatch.done (/Users/behrooz/git/Fitopedia/Fitopedia/platforms/android/cordova/node_modules/q/q.js:883:30) at Promise.promise.promiseDispatch (/Users/behrooz/git/Fitopedia/Fitopedia/platforms/android/cordova/node_modules/q/q.js:816:13)at /Users/behrooz/git/Fitopedia/Fitopedia/platforms/android/cordova/node_modules/q/q.js:877:14 at runSingle (/Users/behrooz/git/Fitopedia/Fitopedia/platforms/android/cordova/node_modules/q/q.js:137:13) Error: spawn EACCES

解決:
chmod +x platforms/android/gradlew