无法从开发工具包管理器安装"Android SDK Platform Tools"


安装

过程中显示以下错误:

Done loading packages.
Preparing to install archives
Downloading Android SDK Platform-tools, revision 26.0.2
Download interrupted: Connection to https://dl.google.com refused
Done. Nothing was installed.
Preparing to install archives
Downloading Android SDK Platform-tools, revision 26.0.2
Download finished with wrong checksum. Expected 98832431e339c82be1fe910a733a3782071200fd, got aa3ef6f18eff4b8f12dbdf980647a6ce6c2ebe8c.
Done. Nothing was installed.

我必须自己安装它。

  1. 下载链接:
    https://developer.android.com/studio/releases/platform-tools.html
  2. 选择 zip 文件SDK Platform-Tools for Windows并将其解压缩。
  3. 将其移动到您的安卓目录中,在我的情况下是:C:UsersPublicDocumentsEmbarcaderoStudio19.0CatalogRepositoryAndroidSDK-2433_19.0.27659.1188 .
  4. 现在您有了新目录:C:UsersPublicDocumentsEmbarcaderoStudio19.0CatalogRepositoryAndroidSDK-2433_19.0.27659.1188platform-tools
  5. 再次运行SDK Manager.exe

就我而言,错误消失了。我必须先安装 4 个软件包,然后我必须安装 3 个软件包。现在它运行完美。

您可以提取已下载的 SDK 管理器的存档:

  1. 转到您的安卓 sdk 目录
  2. 输入"临时"文件夹
  3. 将 'platform-tools_r26.0.2-windows.zip' 解压缩到 android-sdk 根目录

但是这使得校验和毫无意义,除非您现在需要新版本,否则最好等到它被修复。

我首先使用Android SDK Manager删除Android SDK Platform工具解决了这个问题。然后我使用了上面 Umair Malhi 提供的直接下载链接 (https://dl.google.com/android/repository/platform-tools_r26.0.2-windows.zip),然后将平台工具文件夹解压缩到 SDK 文件夹中(在我的例子中是 C:\ProgramData\Microsoft\AndroidSDK\25)。如果您重新运行 Android SDK 管理器,问题将得到解决。

我遇到了同样的问题,以管理员身份运行Visual Studio后,更新成功通过。

编辑:较新版本的VS现在提示您在管理员模式下运行VS,当您单击Android SDK平台工具时。

我遇到了同样的校验和问题,直到我刚刚更新到 Android Studio 3.0。现在,Android SDK 平台工具 26.0.2 可以按预期下载和安装。不确定Android Studio 2.x的问题是否仍然存在,或者已单独修复,但现在值得再试一次。

就我而言,我需要做的就是以管理员身份运行Android Studio,并且安装软件包没有问题。

我有同样的问题,就我而言,我没有为文件夹编写规则platform-tools。所以我给了我用命令写规则:

sudo chmod -R ugo+rw

最新更新