Skip to content Skip to sidebar Skip to footer

Phone Gap [error] Cmd: Command Failed With Exit Code Enoent

I am trying to get phone gap to work on android and my command outputs the following: phonegap build android [phonegap] detecting Android SDK environment... [phonegap] using the l

Solution 1:

If you are sure of yours paths try to type android in cmd if it says: 'xcopy' was not recognized.

then add to your path:

%SystemRoot%\system32; %SystemRoot%; %SystemRoot%\System32\Wbem;

Solution 2:

I am not sure how this resolved the issue but try this out it will resolve for sure.

This is due to ANT tools could not find tools.jar in JRE lib directory. When I copied tools.jar from JDK lib directory to JRE lib directory. Restart the system and the problem was absolutely solved and the build was successful when I ran the command "cordova -d platform add android". Hope this helps you.

Solution 3:

He is using Windows 7, brew is for OSX.

To install ANT for windows try this: https://code.google.com/p/winant/

Solution 4:

You need to install ant before build.

How to install ant? Use this one.

try this one. Make sure you install node.js first

1.Download and install Homebrew by executing following command in cmd:

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

2.Install Apache Ant via Homebrew by executing

brew install ant

3.Build project

phonegap build android

Solution 5:

I'm using cordova and the following worked for me:

cordova platform rm android
cordova platform add android

After this refresh eclipse acted a bit wonky just remove and add the project back again.

Post a Comment for "Phone Gap [error] Cmd: Command Failed With Exit Code Enoent"