2017-02-24 64 views
0

嘗試使用phonegap模擬android應用程序時遇到錯誤。 我已經建立了項目,但在運行phonegap emulate我得到一個錯誤,這是錯誤:在Linux上產生EACCES phonegap模擬

`Error: spawn EACCES 
    at exports._errnoException (util.js:1028:11) 
    at ChildProcess.spawn (internal/child_process.js:313:11) 
    at Object.exports.spawn (child_process.js:387:9) 
    at /home/adarsh/Documents/hack2help/platforms/android/cordova/lib/emulator.js:205:18 
    at _fulfilled (/home/adarsh/Documents/hack2help/platforms/android/cordova/node_modules/q/q.js:835:54) 
    at self.promiseDispatch.done (/home/adarsh/Documents/hack2help/platforms/android/cordova/node_modules/q/q.js:864:30) 
    at Promise.promise.promiseDispatch (/home/adarsh/Documents/hack2help/platforms/android/cordova/node_modules/q/q.js:797:13) 
    at /home/adarsh/Documents/hack2help/platforms/android/cordova/node_modules/q/q.js:605:44 
    at runSingle (/home/adarsh/Documents/hack2help/platforms/android/cordova/node_modules/q/q.js:138:13) 
    at flush (/home/adarsh/Documents/hack2help/platforms/android/cordova/node_modules/q/q.js:126:13)` 

我試圖從互聯網上多種解決方案,將權限授予該應用程序文件夾沒有工作。

回答

0

在cordova我設置了chmod -R 777用戶名到我的Android-sdk目錄,這解決了我的問題。