You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows下无需安装Android Studio,如何获知Android SDK Platform Tools更新?

无需Android Studio,在Windows上跟踪Android SDK Platform Tools更新并获取通知

一、快速手动确认版本情况

如果你偶尔想核对版本,不用频繁打开网页:

  • 打开命令提示符(CMD)或PowerShell,运行 adb version,就能直接看到本地adb的版本号
  • 官方最新版本号可以通过简单脚本抓取,或者偶尔快速查看官方页面即可(更省心的自动方案见下文)

二、自动获取新版本通知的实用方案

1. GitHub Releases邮件通知

Android SDK Platform Tools的更新会同步到GitHub仓库,操作步骤:

  • 登录GitHub账号,找到对应仓库(搜索「Android SDK Platform Tools」即可定位)
  • 点击仓库右上角的「Watch」按钮,选择「Releases only」选项
  • 之后每次有新版本发布,GitHub会自动给你绑定的邮箱发送通知,完全不用手动检查

2. Chocolatey包管理器(适合习惯用包管理的用户)

Chocolatey是Windows的包管理工具,用它管理adb和fastboot可自动跟踪更新:

  • 先安装Chocolatey(官网有一键安装脚本,操作简单)
  • 打开管理员权限的PowerShell,运行 choco install adb 完成工具安装
  • 配置自动提醒:写一段简单的PowerShell脚本,用Windows任务计划程序设置每天/每周定时运行,脚本示例:
    choco outdated adb | findstr "adb"
    if ($LASTEXITCODE -eq 0) {
        # 弹出Windows Toast通知
        [Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] > $null
        $template = [Windows.UI.Notifications.ToastNotificationManager]::GetTemplateContent([Windows.UI.Notifications.ToastTemplateType]::ToastText01)
        $textNodes = $template.GetElementsByTagName("text")
        $textNodes[0].AppendChild($template.CreateTextNode("ADB有新版本可用!")) > $null
        $toast = [Windows.UI.Notifications.ToastNotification]::new($template)
        [Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier("ADB更新提醒").Show($toast)
    }
    
  • 一旦有新版本,Windows右下角会弹出通知,直接运行 choco upgrade adb 就能完成更新

3. 自定义PowerShell脚本+任务计划程序(完全自主可控)

不想用第三方工具的话,自己写脚本定期检查:

  • 脚本核心逻辑:
    1. 获取本地adb版本:$localVersion = (adb version | Select-String -Pattern "(\d+\.\d+\.\d+)").Matches.Groups[1].Value
    2. 抓取官方最新版本号(通过Invoke-WebRequest获取官方页面内容后提取版本信息)
    3. 对比版本号,若不一致则弹出Windows通知
  • 将脚本添加到Windows任务计划程序,设置固定运行周期,即可自动提醒更新

补充:快速更新adb和fastboot的方法

收到通知后,无需安装Android Studio:直接下载官方SDK Platform Tools压缩包,解压后将里面的adb.exe、fastboot.exe等文件覆盖到你原来的工具目录即可(注意先关闭正在运行的adb进程)

内容的提问来源于stack exchange,提问作者Pixie

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.04 08:08:15