Android Studio安装BUG

时间:2018-04-21 11:24:53

标签: java android compiler-errors install

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

我试图关闭防火墙,Windows防御者,使用ADMINISTRATOR权限运行android studio,我也尝试下载JDK 8,然后下载JDK 10, 我的计算机上有JAVA,当我第一次尝试运行ANDROID STUDIO时,当他尝试下载像android sdk或类似的东西时,我总是得到像这样的消息;

  

准备"安装Android SDK工具(修订版:26.1.1)"。下载   https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip   java.io.IOException:无法下载   ' https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip&#39 ;:   不支持的记录版本Unknown-192.23,响应:200 OK
  警告:   准备SDK包Android SDK工具时出错:
  无法下载   ' https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip&#39 ;:   不支持的记录版本Unknown-192.23,响应:200 OK。 "安装   Android SDK工具(修订版:26.1.1)"失败。

当我尝试启动Android Studio不支持的记录版本

时,我总是得到此错误
  

Unknown-192.23(< - 这个数字总是不同的)

谢谢那些试图帮我解决这个问题的人

P.S。我正在使用Windows 7 64位& Vertex 60gb SSD

P.S。 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




2 个答案:

答案 0 :(得分:1)

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

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

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

      1. 就我而言,它显示了API 27-62MB。我点击这个安装。成功安装后,我的应用程序运行正常。
      2. 我希望此修复程序适合您

答案 1 :(得分:0)

以管理员身份运行 Android Studio 将主要引导您找到解决方案。我过去也遇到过类似问题