cordova error ENOENT

2019-02-25 14:28发布

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

enter image description here

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

enter image description here

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??

2条回答
Deceive 欺骗
2楼-- · 2019-02-25 14:46

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%;
查看更多
叼着烟拽天下
3楼-- · 2019-02-25 14:47

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)

查看更多
登录 后发表回答