How do I remove an image-system for avd file in Android Studio?
Asked Answered
D

9

158

enter image description here

enter image description here

I want to remove the api 16 of jelly bean but there is not remove button how can I do that. image file is very big size file so I need don't many system image file

Distrain answered 20/11, 2016 at 10:21 Comment(1)
are you able to find system image in the installed listNavar
T
74

After selecting show hidden files option from windows explorer, go to the location where Android SDK is installed. Then open system-images folder. You will see a folder named as the api level same as jelly bean. Just remove that folder.

Triptych answered 20/11, 2016 at 10:41 Comment(5)
/Users/myeongsic/Library/Android/sdk/system-image path. is that right? only this one remove folder?Distrain
C:\Users\<user>\AppData\Local\Android\sdk\system-images\ on WindowsProfessorship
On mac: /Users/<USER_NAME>/Library/Android/sdkHyden
Delete Android system image with Tools / Android / SDK Manager is better.Fromma
%userprofile%\appdata\Local\Android\Sdk\system-images for current user profile on WindowsCantharides
M
343
  • Go to Preferences / Appearance & Behaviour / System Settings / Android SDK

  • Tick Show package details in the bottom right.

  • Untick the version(s) of Android you want to uninstall and click Ok.

Madgemadhouse answered 22/2, 2018 at 1:9 Comment(5)
This should be marked as the correct answer, as it is the built-in way to manage the AVD images.Preeminent
This should be the right answer. Let Android Studio SDK Manager handle the system image deletion instead of manually deleting system folders. It's the safe option and guaranteed to work. I recovered 50+ GB of disk space using this approach immediately on an iMac.Ozonolysis
In version 3.5.3 File -> Settings -> Appearance & Behavior -> System Settings -> Android SDKClaytonclaytonia
Tools > SDK Manager in 3.6.3Thy
Thanks, this is the correct way to do it, not from the terminal.Lamont
T
74

After selecting show hidden files option from windows explorer, go to the location where Android SDK is installed. Then open system-images folder. You will see a folder named as the api level same as jelly bean. Just remove that folder.

Triptych answered 20/11, 2016 at 10:41 Comment(5)
/Users/myeongsic/Library/Android/sdk/system-image path. is that right? only this one remove folder?Distrain
C:\Users\<user>\AppData\Local\Android\sdk\system-images\ on WindowsProfessorship
On mac: /Users/<USER_NAME>/Library/Android/sdkHyden
Delete Android system image with Tools / Android / SDK Manager is better.Fromma
%userprofile%\appdata\Local\Android\Sdk\system-images for current user profile on WindowsCantharides
Z
31

This is hidden now. to not delete your SDK along with the image. you need to

  1. Tools->SDK manager
  2. Select show package details,
  3. then select the relevant system image only, leaving in your sdk

enter image description here

Zermatt answered 15/7, 2020 at 16:0 Comment(0)
M
18

For Mac users:

rm -r ~/Library/Android/sdk/system-images/android-XX
Menard answered 22/7, 2017 at 14:46 Comment(1)
Thank you. From above suggestion, I just select image in folder by: open Library/Android/sdk/system-images/ then delete desired image.Avion
N
3

The Process is relatively simple and is as follows:

  1. Select the image from Android SDK Manager
  2. Remove the unnecessary system image by selecting the image and then clicking Delete package.
  3. Install your image of choice.
Navar answered 20/11, 2016 at 10:36 Comment(3)
sorry I don't understand. look at second image. there was already "not install"Distrain
check if the same image is listed among Extras. Once, that happened to me.Navar
check if intel x86 atom system image is listed in ExtrasNavar
B
3

File -> Settings-> SDK
1. Check 'Show Package Details'
2. Uncheck the System Image you want to Delete
3. Click 'OK' and will Delete ARM Images.

enter image description here

Bowen answered 30/9, 2019 at 3:27 Comment(0)
E
3

For Android Studio Giraffe, using the new Android Studio ui

  1. Go to Preferences -> Languages & Frameworks -> Android SDK
  2. Tick Show package details in the bottom right.
  3. Untick the version(s) of Android you want to uninstall and click Ok.

enter image description here

Extraterritorial answered 30/8, 2023 at 15:10 Comment(0)
F
2

For Mac users is the same path Users > YourUserName > Library > Android > sdk > system-images

Feinleib answered 29/3, 2018 at 8:9 Comment(0)
O
0

CLI solution for Linux/Mac users:

  1. List all installed packages:
sdkmanager --list

Installed packages:
  Path                                    | Version | Description                    | Location
  -------                                 | ------- | -------                        | -------
  cmdline-tools;latest                    | 11.0.0  | PLACEHOLDER                    | cmdline-tools/latest
  emulator                                | 29.3.4  | PLACEHOLDER                    | emulator
  patcher;v4                              | 1       | SDK Patch Applier v4           | patcher/v4
  platform-tools                          | 34.0.4  | PLACEHOLDER                    | platform-tools
  platforms;android-27                    | 3       | Android SDK Platform 27, rev 3 | platforms/android-27
  system-images;android-27;default;x86_64 | 1       | Intel x86_64 Atom System Image | system-images/android-27/default/x86_64
  1. Remove the desired packages, e.g.:
sudo sdkmanager --uninstall "system-images;android-27;default;x86_64

As a side note, there may be more than a single sdkmanager in the system, e.g., under:

  • /usr/bin/sdkmanager, and
  • /opt/android-sdk/cmdline-tools/latest/bin/sdkmanager

Depending on which sdkmanager you use, you may see different packages!

Outsize answered 28/9, 2023 at 8:37 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.