After downloading the SDK, unpack the .zip archive to a suitable location on your machine. By default, the SDK files are unpacked into a directory named android_sdk_>_
_
. The directory contains the subdirectories tools/
, samples/
, and others.
[译] 先下载其SDK,(下载后是一个Zip的压缩包,当然这是Windows平台),将该压缩包解压到一个合适的地方,解压后有一个名为(android_sdk_windows_m3-rc37a[windows平台])的文件夹,这个目录中包含了tools/ 、samples/、等子目录。
Make a note of the name and location of the unpacked SDK directory on your system — you will need to refer to the SDK directory later, when setting up the Android plugin or using SDK tools.
[译]将解压后的SDK目录的位置和名称做个标记,你将在后面要指向这个目录,在你设置Android 插件和使用SDK工具的时候。
Optionally, you can add the path to the SDK tools
directory to your path. As mentioned above, the tools/
directory is located in the SDK directory.
一般说来,你能够将SDK 中的tools目录加入到你的path 中,前面所提到的,这个tools/目录已经在SDK的目录中。
On Linux, edit your ~/.bash_profile or ~/.bashrc file. Look for a line that sets the PATH environment variable and add the full path to the tools/
directory to it. If you don't see a line setting the path, you can add one:
export PATH=${PATH}: /tools
On a Mac, look in your home directory for .bash_profile and proceed as for Linux. You can create the .bash_profile, if you haven't already set one up on your machine.
On Windows, right click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path under System Variables. Add the full path to the tools/
directory to the path.
[译]在windows平台,右击“我的电脑”,设置其“属性”。在“高级”选项页中,击点“环境变量”按钮,在其对话框弹出后,双击“系统变量”中的"Path"项,加入tools/目录的完整路径到"Path"中。
Adding tools
to your path lets you run Android Debug Bridge (adb) and the other command line tools without needing to supply the full path to the tools directory. Note that, if you update your SDK, you should remember to update your PATH settings to point to the new location, if different.
[译]将tools 目录加入到你的Path中,能够使你直接运行ADB(Android Debug Bridge --Android 调试桥)和其它的命令行工具,而不需要在cmd 中输入完整的路径了。需要注意的是,如果你要更新你的SDK,你要记住去更新你的Path设置,指向新SDK的目录。