Sachin Sachin - 3 months ago 7
Android Question

How do i run the Android command line tools?

I'm still pretty new to Android and programming in general, and I can't seem to get the command line tools packaged with the Android SDK to work. I'm running Mac OSX and each time I try to run layoutopt, for example, the terminal returns, *-bash: cmd: command not found
*

Also, is it okay to have my SDK located in the Developer directory and my android project in some unrelated directory when using these tools?

Answer

I figured it out. I needed to go to the /tools directory in the SDK folder and type in:

./layoutopt <directorypath>
Comments