问题
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