Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
944 views
in Technique[技术] by (71.8m points)

java - Android Studio Installation BUG

From yesterday i am having problems while installing android studio on my new SSD disc.

I tried to turn off firewall, windows defender, run android studio with ADMINISTRATOR rights, also i tried downloading JDK 8 , then JDK 10 , I have JAVA on my computer and when i try to run ANDROID STUDIO for the first time and when he try to download things like android sdk or similar i am getting always the same message like this;

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.

I am always getting this for error when i try to start Android Studio Unsupported record version

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

Thank you guys who will try to help me fix this

P.s. i am using Windows 7 64 bit & Vertex 60gb SSD

P.s. android studio all worked on older HARD DISC , is problem in hard?

This is FULL INSTALATION logs you can see a lot of mistakes and failer installations,why that happens ?

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:UsersNaTuAppDataLocalAndroidSdkextrasintelHardware_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:UsersNaTuAppDataLocalAndroidSdkpatcherv4
"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:UsersNaTuAppDataLocalAndroidSdkemulator
"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:UsersNaTuAppDataLocalAndroidSdkplatform-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:UsersNaTuAppDataLocalAndroidSdkuild-tools27.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:UsersNaTuAppDataLocalAndroidSdkextrasgooglem2repository
"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:UsersNaTuAppDataLocalAndroidSdkplatformsandroid-27
"Install Android SDK Platform 27 (revision: 1)" complete.
"Install Android SDK Platform 27 (revision: 1)" finished.
Parsing C:UsersNaTuAppDataLocalAndroidSdkuild-tools27.0.3package.xml
Parsing C:UsersNaTuAppDataLocalAndroidSdkemulatorpackage.xml
Parsing C:UsersNaTuAppDataLocalAndroidSdkextrasgooglem2repositorypackage.xml
Parsing C:UsersNaTuAppDataLocalAndroidSdkextrasintelHardware_Accelerated_Execution_Managerpackage.xml
Parsing C:UsersNaTuAppDataLocalAndroidSdkpatcherv4package.xml
Parsing C:UsersNaTuAppDataLocalAndroidSdkplatform-toolspackage.xml
Parsing C:UsersNaTuAppDataLocalAndroidSdkplatformsandroid-27package.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
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I experienced the same issue as i tried to install Android API 27. Each time i use the SDK manager it downloads but fails to install. Here is how i fixed it

  1. Run Android Studio as administrator
  2. Open SDK Manager
  3. Click on "edit" found close to "Android SDK location"

enter image description here

  1. It opens a window that show a list of "Android SDK Platform" you have downloaded but not installed.

enter image description here

  1. In my case, it shows API 27- 62MB. I clicked on this to install. After it successfully install my app works fine.

I hope this fix works for you


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
...