sakibguy / worked-issues

arget medi a[rpescriptionmedicie] &ssets[dr] (reeeverse._ax:p)
2 stars 0 forks source link

[org] BD-FMDPP/HH: Download failed Android S, 12.0 sys img #152

Closed sakibguy closed 4 months ago

sakibguy commented 4 months ago

PROB

Sys img download failed after 30 min. Could be reason of network lost.

  1. Android Studio Hedgehog | 2023.1.1
  2. Device Simulator/Emulator: Android S, 12.0 (Img)

SNaP

1_20240224_2_Downloading_Android_12_Device_Simulator 1_20240224_3_download_failed_sys_img

sakibguy commented 4 months ago

EFFORT 1: R+D, Download again

1_20240224_2 2_Downloading_Android_12_Device_Simulator

FAILED 1: Same after 30 min

1_20240224_3 2_download_failed_sys_img

sakibguy commented 4 months ago

EFFORT 2: DONE

R+D: Downloading sys img of Android 12L Sv2

20240224_1 2 3_Downloading_Android_12L_Sv2_Device_Simulator

RESULT: FAILED

Same issue

20240224_1 3 3_download_failed_sys_img

sakibguy commented 4 months ago

Effort 3: DONE

Hold issue and Google for soln.

20240224_1 2 4_Read_issue

Sol

https://stackoverflow.com/questions/73621743/this-download-could-not-be-finalized-from-the-interim-state-retrying-without-ca

Go to C:\Users\hp\AppData\Local\Android\Sdk then search for system-images folder and delete it.... Then restart android studio

Result: Failed

20240224_1 3 4_download_failed_sys_img

sakibguy commented 4 months ago

Effort 4: Done

R+D: Downloading system-images;android-VanillaIceCream;google_apis_playstore;x86_64

20240224_1 2 5

Result: Failed

20240224_1 3 5_download_failed_sys_img

sakibguy commented 4 months ago

Effort 6: Done

R+D: Explore community

  1. https://issuetracker.google.com/issues/242730606
  2. https://github.com/orgs/community/discussions/20930
  3. https://stackoverflow.com/questions/41311344/installing-android-emulator-in-android-studio-with-zip-files
  4. https://developer.android.com/studio/emulator_archive
  5. more

Result: Solved

  1. Shutdown PC
  2. Run Android Studio again
  3. On SDK setup widget window, selected as default.
  4. Showing Installed logs as below

Preparing "Install Sources for Android 34 (revision 2)". Downloading http://dl.google.com/android/repository/sources-34_r01.zip "Install Sources for Android 34 (revision 2)" ready. Installing Sources for Android 34 in C:\dev\bin\asdk\sources\android-34 "Install Sources for Android 34 (revision 2)" complete. "Install Sources for Android 34 (revision 2)" finished. Preparing "Install Android SDK Platform 34 (revision 3)". Downloading http://dl.google.com/android/repository/platform-34-ext7_r03.zip "Install Android SDK Platform 34 (revision 3)" ready. Installing Android SDK Platform 34 in C:\dev\bin\asdk\platforms\android-34 "Install Android SDK Platform 34 (revision 3)" complete. "Install Android SDK Platform 34 (revision 3)" finished. Preparing "Install Android SDK Build-Tools 34 v.34.0.0". Downloading http://dl.google.com/android/repository/build-tools_r34-windows.zip Warning: This download could not be finalized from the interim state. Retrying without caching. Downloading http://dl.google.com/android/repository/build-tools_r34-windows.zip "Install Android SDK Build-Tools 34 v.34.0.0" ready. Installing Android SDK Build-Tools 34 in C:\dev\bin\asdk\build-tools\34.0.0 "Install Android SDK Build-Tools 34 v.34.0.0" complete. "Install Android SDK Build-Tools 34 v.34.0.0" finished. Preparing "Install Android SDK Platform-Tools v.35.0.0". Downloading http://dl.google.com/android/repository/platform-tools_r35.0.0-windows.zip "Install Android SDK Platform-Tools v.35.0.0" ready. Installing Android SDK Platform-Tools in C:\dev\bin\asdk\platform-tools "Install Android SDK Platform-Tools v.35.0.0" complete. "Install Android SDK Platform-Tools v.35.0.0" finished. Preparing "Install Android Emulator v.33.1.24". Downloading http://dl.google.com/android/repository/emulator-windows_x64-11237101.zip

Installing diff components

20240225_1 10

Obstacle

  1. Only emulator left to install by studio or manually even tried didn't work. All other components (sources, platform, platform-tools, build-tools, ...etc) are installed correctly.

20240225_1 11

Install Emulator: Google Play Intel x86_64 Atom System Image

Google Play Intel x86_64 Atom System Image (system-images;android-34;google_apis_playstore;x86_64)

20240225_1 12 20240225_1 13

Installed Emulator but GP services failed to install.

20240225_1 16

Followed this,

  1. Manually downloaded from Downloading http://dl.google.com/android/repository/sys-img/google_apis_playstore/x86_64-34_r12.zip
  2. pasted under system-images/android-34/default/x86_64 or ../android-34/intel/x86_64
  3. Checking result..

20240225_1 17

Result: Solved

  1. Showing emulator/AVD img

20240225_1 18

  1. Emulator/AVD running

20240225_1 19

sakibguy commented 4 months ago

Effort 5: Done

Uninstall Studio, download, reinstall latest android-studio-2023.1.1.28-windows.exe (patch 2)

SNaP

20240225_1 1 20240225_1 2

Downloading android-studio-2023.1.1.28-windows.exe (patch 2)

20240225_1 3

20240225_1 4 20240225_1 5 20240225_1 6 20240225_1 7

Preparing "Install Sources for Android 34 (revision 2)".
Downloading http://dl.google.com/android/repository/sources-34_r01.zip
Warning: This download could not be finalized from the interim state. Retrying without caching.
Downloading http://dl.google.com/android/repository/sources-34_r01.zip
"Install Sources for Android 34 (revision 2)" ready.
Installing Sources for Android 34 in C:\dev\bin\asdk\sources\android-34
"Install Sources for Android 34 (revision 2)" complete.
"Install Sources for Android 34 (revision 2)" finished.
Preparing "Install Android SDK Platform 34 (revision 3)".
Downloading http://dl.google.com/android/repository/platform-34-ext7_r03.zip
Warning: This download could not be finalized from the interim state. Retrying without caching.
Downloading http://dl.google.com/android/repository/platform-34-ext7_r03.zip

Result: Failed

Paused installation

Studio paused to install SDK, even uninstalled past version of studio, then downloaded, installed latest version of the Studio.

20240225_1 8