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