You may be wondering just how files such as the layout file main.xml get processed and exactly where the R.java file comes from. Or use the following command for Mac OS X and Linux:Įxport PATH=$PATH:/path_to_Android_SDK_directory/tools ANDROID ASSET PACKAGING TOOL Set path=%path% c:\software\google\androidsdk\tools For example, if your Android SDK is installed to c:\software\google\androidsdk, you can add the Android SDK to your path by performing the following operation in a command window on your Windows computer:
It is a good idea to add the tools directory to your search path. We are going to explore two of the command-line tools found in the Android SDK. While Eclipse and the ADTs provide a great deal of control over our Android development environment, sometimes it is nice to exercise greater control, particularly when considering the power and convenience that scripting can bring to a development platform. The Android SDK ships with a collection of command-line tools, which are located in the tools subdirectory of your Android SDK installation.