2017-10-29 209 views
21

下面會顯示錯誤的安裝過程中安裝的「Android SDK平臺工具」:我們無法根據SDK管理器

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. 
+2

我有同樣的問題。試圖關閉反病毒,Windows防火牆,清理SDK管理器緩存,強制HTTP和以上都沒有工作。 – PramusPL

回答

19

我不得不由我自己來安裝它。

  1. 下載鏈接:
    https://developer.android.com/studio/releases/platform-tools.html
  2. 選擇zip文件SDK Platform-Tools for Windows和解壓。
  3. 把它移到你的android目錄下,在我的情況下是:C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository\AndroidSDK-2433_19.0.27659.1188
  4. 現在你有了新的目錄:C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository\AndroidSDK-2433_19.0.27659.1188\platform-tools
  5. 再次運行SDK Manager.exe

在我的情況下,錯誤消失了。我必須先安裝4個軟件包,然後我必須安裝3個軟件包。現在它運行完美。

+0

此工作適用於我。我的猜測是谷歌只是計算他們的zip的校驗和。 – TGP1994

+0

此案例的直接下載鏈接可能是:https://dl.google.com/android/repository/platform-tools_r26.0.2-windows.zip。當然,這可能不是這樣的。 –

+0

也爲我工作,謝謝。這可能不是最好的答案,但這是我們所有的。只有Google可以做到這一點。 – PramusPL

7

你可以只提取SDK管理器已經下載的存檔:

  1. 轉到您的Android SDK目錄
  2. 輸入「臨時」文件夾
  3. 提取「平臺tools_r26.0.2- windows.zip'到android-sdk根目錄

但是,這使得校驗和毫無意義,最好等到它被修復,除非你現在需要新版本。

4

我通過首先使用Android SDK Manager刪除Android SDK平臺工具來解決此問題。然後我使用上面的Umair Malhi(https://dl.google.com/android/repository/platform-tools_r26.0.2-windows.zip)提供的直接下載鏈接,然後將platform-tools文件夾提取到SDK文件夾(在我的情況下是C:\ ProgramData \ Microsoft \ AndroidSDK \ 25)。如果您重新運行Android SDK Manager,則問題已解決。

0

我有相同的校驗問題,直到我剛更新到Android Studio 3.0。現在,Android SDK平臺 - 工具26.0.2按預期進行下載和安裝。不知道該問題是否仍然存在的Android Studio 2.x或它已單獨修復,但現在值得再試一次。