Android: Downloading the Google USB Driver

本文指导您如何通过Android SDK和AVD管理器下载并安装Google USB驱动,以便在Windows环境下连接Android设备进行开发。

http://developer.android.com/sdk/win-usb.html

Downloading the Google USB Driver

Figure 1.The SDK and AVD Manager with the Google USB Driver selected.

The USB Driver for Windows is available for download as an optional SDK component. You need the driver only if you are developing on Windows and want to connect an Android-powered device (ADP, Nexus One, or Nexus S) to your development environment over USB.

To download the driver, use the Android SDK and AVD Manager tool that is included with theAndroid SDK:

  1. Launch the SDK and AVD Manager by double-clickingSDK Manager.exe, at the root of your SDK directory.
  2. Expand theThird party Add-onsandGoogle Inc. add-ons.
  3. CheckGoogle Usb Driver packageand clickInstall selected.
  4. Proceed to install the package. When done, the driver files are downloaded into the<sdk>\google-usb_driver\directory.

<think> 嗯,用户这次聚焦在"info: downloading installer"这个特定提示的含义上。之前我已经解释了下载安装程序的一般过程,但用户明显需要更精确的技术定义。 从用户引用的两个来源看: - 引用[1]展示的是Rust语言的安装场景,通过curl管道执行sh脚本时出现的标准提示 - 引用[2]提到ubuntu下载flash插件时的卡顿问题,暗示"downloading"状态可能遇到网络层面的阻塞 需要强调这个提示的四个关键特征: 1)属于进度反馈信息而非错误 2)常见于命令行安装工具(如rustup、npm) 3)可能出现在下载初始化阶段(此时进度条尚未生成) 4)与GUI安装程序的视觉反馈形式不同 特别要注意用户截取的是类Unix环境(appledeMac-mini),这与Windows的下载行为有差异。在回答时需要补充: - 管道命令的特殊性(curl | sh) - macOS/Linux终端下载的常见存放位置(/tmp目录) - 如何验证下载完整性(shasum等工具) 用户没问但可能关心的隐藏问题: - 为什么不是实时显示进度百分比?(可能脚本未启用curl的进度条) - 长时间卡在此状态怎么办?(需补充网络诊断方法) </think> 好的,我们来聚焦解释 `info: downloading installer` 的具体含义和上下文。 ### 一、`info: downloading installer` 的含义解析 这个提示是**命令行工具在安装软件时输出的标准状态信息**,包含三层核心含义: 1. **`info:`** *表示信息级别* 这是普通提示信息(Information),而非警告(Warning)或错误(Error)。说明当前操作按预期执行中,无需用户立即干预。 2. **`downloading`** *表示当前动作* 系统正在从远程服务器获取文件。此过程可能持续数秒到数分钟,取决于网络速度和文件大小。 3. **`installer`** *表示下载对象* 此处特指**软件安装程序**(如脚本、可执行文件或压缩包),例如: - Rust 语言的 `rustup-init` 安装脚本(引用[1])[^1] - Ubuntu 系统更新所需的插件包(引用[2])[^2] ### 二、技术流程解析 当你在终端执行类似 `curl https://sh.rustup.rs -sSf | sh` 的命令时: ```mermaid sequenceDiagram participant Terminal participant RemoteServer participant LocalSystem Terminal->>RemoteServer: 发送下载请求 (curl) RemoteServer->>LocalSystem: 传输安装程序文件 LocalSystem-->>Terminal: 输出“info: downloading installer” Terminal->>LocalSystem: 执行安装 (sh) ``` 数学表示为传输过程: $$ \text{DownloadTime} \approx \frac{\text{FileSize}}{\text{Bandwidth}} + \text{NetworkLatency} $$ ### 三、用户需关注的重点 1. **进度提示** 若长时间停留在此提示: - 检查网络连接(如 `ping archive.canonical.com`) - 确认服务器状态(引用[2]中的DNS解析问题)[^2] 2. **文件验证** 下载完成后应立即验证完整性(例如通过哈希值): ```bash echo "预期校验值" | sha256sum -c ``` 3. **安全风险** 通过管道直接执行远程代码(`| sh`)存在安全风险,需确保来源可信(如官方源 `rust-lang.org`)[^1]。 ### 四、典型场景示例 1. **Rust安装**(引用[1]) ```bash curl https://sh.rustup.rs -sSf | sh # 触发下载提示 ``` 2. **Ubuntu插件修复**(引用[2]) ```bash sudo apt install flashplugin-installer # 若卡在downloading需排查DNS ```
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值