gpt4 book ai didi

java - Android Studio 安装BUG

转载 作者:太空狗 更新时间:2023-10-29 13:04:37 25 4
gpt4 key购买 nike

从昨天开始,我在我的新 SSD 光盘上安装 android studio 时遇到了问题。

我尝试关闭防火墙、windows defender,以管理员权限运行 android studio,我还尝试下载 JDK 8,然后是 JDK 10,我的电脑上有 JAVA,当我第一次尝试运行 ANDROID STUDIO 时,当他尝试下载 android sdk 或类似的东西时,我总是收到这样的相同消息;

Preparing "Install Android SDK Tools (revision: 26.1.1)". Downloading https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip java.io.IOException: Cannot download 'https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip': Unsupported record version Unknown-192.23 , response: 200 OK
Warning: An error occurred while preparing SDK package Android SDK Tools:
Cannot download 'https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip': Unsupported record version Unknown-192.23 , response: 200 OK. "Install Android SDK Tools (revision: 26.1.1)" failed.

当我尝试启动 Android Studio Unsupported record version 时,我总是得到这个错误

Unknown-192.23(<-- this numbers are always diffrent )

谢谢那些愿意帮助我解决这个问题的人

附言我正在使用 Windows 7 64 位和 Vertex 60gb SSD

附言android studio 都在较旧的 HARD DISC 上工作,硬盘有问题吗?

这是完整的安装日志,您可以看到很多错误和失败的安装,为什么会这样?

Preparing "Install Android SDK Tools (revision: 26.1.1)".
Downloading https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip
java.io.IOException: Cannot download 'https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip': Unsupported record version Unknown-192.23
, response: 200 OK
Warning: An error occurred while preparing SDK package Android SDK Tools: Cannot download 'https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip': Unsupported record version Unknown-192.23
, response: 200 OK.
"Install Android SDK Tools (revision: 26.1.1)" failed.
Preparing "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 6.2.1)".
Downloading https://dl.google.com/android/repository/extras/intel/haxm-windows_r6_2_1.zip
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 6.2.1)" ready.
Installing Intel x86 Emulator Accelerator (HAXM installer) in C:\Users\NaTu\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 6.2.1)" complete.
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 6.2.1)" finished.
Preparing "Install SDK Patch Applier v4 (revision: 1)".
Downloading https://dl.google.com/android/repository/3534162-studio.sdk-patcher.zip.bak
"Install SDK Patch Applier v4 (revision: 1)" ready.
Installing SDK Patch Applier v4 in C:\Users\NaTu\AppData\Local\Android\Sdk\patcher\v4
"Install SDK Patch Applier v4 (revision: 1)" complete.
"Install SDK Patch Applier v4 (revision: 1)" finished.
Preparing "Install Android Emulator (revision: 27.1.12)".
Downloading https://dl.google.com/android/repository/emulator-windows-4623001.zip
"Install Android Emulator (revision: 27.1.12)" ready.
Installing Android Emulator in C:\Users\NaTu\AppData\Local\Android\Sdk\emulator
"Install Android Emulator (revision: 27.1.12)" complete.
"Install Android Emulator (revision: 27.1.12)" finished.
Preparing "Install Android Support Repository (revision: 47.0.0)".
Downloading https://dl.google.com/android/repository/android_m2repository_r47.zip
java.io.IOException: Cannot download 'https://dl.google.com/android/repository/android_m2repository_r47.zip': Tag mismatch!
, response: 200 OK
Warning: An error occurred while preparing SDK package Android Support Repository: Cannot download 'https://dl.google.com/android/repository/android_m2repository_r47.zip': Tag mismatch!
, response: 200 OK.
"Install Android Support Repository (revision: 47.0.0)" failed.
Preparing "Install Android SDK Platform-Tools (revision: 27.0.1)".
Downloading https://dl.google.com/android/repository/platform-tools_r27.0.1-windows.zip
"Install Android SDK Platform-Tools (revision: 27.0.1)" ready.
Installing Android SDK Platform-Tools in C:\Users\NaTu\AppData\Local\Android\Sdk\platform-tools
"Install Android SDK Platform-Tools (revision: 27.0.1)" complete.
"Install Android SDK Platform-Tools (revision: 27.0.1)" finished.
Preparing "Install Android SDK Build-Tools 27.0.3 (revision: 27.0.3)".
Downloading https://dl.google.com/android/repository/build-tools_r27.0.3-windows.zip
"Install Android SDK Build-Tools 27.0.3 (revision: 27.0.3)" ready.
Installing Android SDK Build-Tools 27.0.3 in C:\Users\NaTu\AppData\Local\Android\Sdk\build-tools\27.0.3
"Install Android SDK Build-Tools 27.0.3 (revision: 27.0.3)" complete.
"Install Android SDK Build-Tools 27.0.3 (revision: 27.0.3)" finished.
Preparing "Install Google Repository (revision: 58)".
Downloading https://dl.google.com/android/repository/google_m2repository_gms_v11_3_rc05_wear_2_0_5.zip
"Install Google Repository (revision: 58)" ready.
Installing Google Repository in C:\Users\NaTu\AppData\Local\Android\Sdk\extras\google\m2repository
"Install Google Repository (revision: 58)" complete.
"Install Google Repository (revision: 58)" finished.
Preparing "Install Sources for Android 27 (revision: 1)".
Downloading https://dl.google.com/android/repository/sources-27_r01.zip
java.io.IOException: Cannot download 'https://dl.google.com/android/repository/sources-27_r01.zip': Unsupported record version Unknown-130.125
, response: 200 OK
Warning: An error occurred while preparing SDK package Sources for Android 27: Cannot download 'https://dl.google.com/android/repository/sources-27_r01.zip': Unsupported record version Unknown-130.125
, response: 200 OK.
"Install Sources for Android 27 (revision: 1)" failed.
Preparing "Install Android SDK Platform 27 (revision: 1)".
Downloading https://dl.google.com/android/repository/platform-27_r01.zip
"Install Android SDK Platform 27 (revision: 1)" ready.
Installing Android SDK Platform 27 in C:\Users\NaTu\AppData\Local\Android\Sdk\platforms\android-27
"Install Android SDK Platform 27 (revision: 1)" complete.
"Install Android SDK Platform 27 (revision: 1)" finished.
Parsing C:\Users\NaTu\AppData\Local\Android\Sdk\build-tools\27.0.3\package.xml
Parsing C:\Users\NaTu\AppData\Local\Android\Sdk\emulator\package.xml
Parsing C:\Users\NaTu\AppData\Local\Android\Sdk\extras\google\m2repository\package.xml
Parsing C:\Users\NaTu\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager\package.xml
Parsing C:\Users\NaTu\AppData\Local\Android\Sdk\patcher\v4\package.xml
Parsing C:\Users\NaTu\AppData\Local\Android\Sdk\platform-tools\package.xml
Parsing C:\Users\NaTu\AppData\Local\Android\Sdk\platforms\android-27\package.xml
java.io.IOException: Cannot download 'https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip': Unsupported record version Unknown-192.23
, response: 200 OK
Warning: An error occurred while preparing SDK package Android SDK Tools: Cannot download 'https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip': Unsupported record version Unknown-192.23
, response: 200 OK.
java.io.IOException: Cannot download 'https://dl.google.com/android/repository/android_m2repository_r47.zip': Tag mismatch!
, response: 200 OK
Warning: An error occurred while preparing SDK package Android Support Repository: Cannot download 'https://dl.google.com/android/repository/android_m2repository_r47.zip': Tag mismatch!
, response: 200 OK.
java.io.IOException: Cannot download 'https://dl.google.com/android/repository/sources-27_r01.zip': Unsupported record version Unknown-130.125
, response: 200 OK
Warning: An error occurred while preparing SDK package Sources for Android 27: Cannot download 'https://dl.google.com/android/repository/sources-27_r01.zip': Unsupported record version Unknown-130.125
, response: 200 OK.

Preparing "Install Android Support Repository (revision: 47.0.0)".
Downloading https://dl.google.com/android/repository/android_m2repository_r47.zip

最佳答案

我在尝试安装 Android API 27 时遇到了同样的问题。每次我使用 SDK 管理器时,它都会下载但无法安装。这是我修复它的方法

  1. 以管理员身份运行 Android Studio
  2. 打开 SDK 管理器
  3. 点击“Android SDK 位置”附近的“编辑”

enter image description here

  1. 它会打开一个窗口,显示您已下载但未安装的“Android SDK 平台”列表。

enter image description here

  1. 在我的例子中,它显示 API 27- 62MB。我点击这个进行安装。成功安装后,我的应用程序运行正常。

我希望这个修复对你有用

关于java - Android Studio 安装BUG,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49955241/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com