I'm trying to set up a phonegap project and while trying to add a platform it outputs the following error:
Error: The command "android" failed. Make sure you have the latest Android SDK installed, and the "android" command (inside the tools/ folder) is added to your path.
I've tried what I've read here: How do I set environment variables on OS X?
and wrote the following in the .profile file:
export PATH=/users/ophir/android-sdks/tools
while it did add the android command to my path and I was able to run it and get a response, I started noticing that a simple "ls" command suddenly didn't work - until I removed what I have done.
how can I add another path to the PATH variable? how does it all work on OS X anyhow?
thanks
:—/path/1:/path/2:$PATH– grg Jan 29 '14 at 09:15export PATH=$PATH:/users/ophir/android-sdks/tools- it means you can't accidentally replace one of the system tools as they will be found first. – Tony Williams Jan 29 '14 at 09:17