cordova error ENOENT

你说的曾经没有我的故事 提交于 2019-12-20 03:48:10

问题


I'm trying to add android platform using cordova but i'm getting that error.

I have problem adding wp7, wp8 and windows 8 as shown below:

I tried a few things found here Phonegap Build android - error "Adding the android platform" ENOENT but doesnt help me. Anyone have any idea how to solve this??


回答1:


If after type android in cmd says: 'xcopy' was not recognized.

then add to your path: %SystemRoot%\system32; %SystemRoot%; %SystemRoot%\System32\Wbem;

After 3 days trying to solve the same issue, finally I found the solution. Thank's to: Installing Phonegap on Windows 7 : The command 'android' failed (I can't add comments yet)




回答2:


Download and install node.js

http://nodejs.org/

Install ant using brew and set ANDROID_HOME to your path.

Download and install Homebrew by executing following command in terminal:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Install Apache Ant via Homebrew by executing

brew install ant

set ANDROID_HOME to your path

%ANDROID_HOME%;


来源:https://stackoverflow.com/questions/22395736/cordova-error-enoent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!