Installing the SDK

本文指导如何下载并解压Android SDK,记录SDK位置以便后续配置,将SDK中的tools目录添加到系统路径,方便运行ADB等命令行工具。

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的目录。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值