You.Brighton
You.Brighton

Reputation: 2088

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

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

Upvotes: 167

Views: 96301

Answers (9)

Henley n
Henley n

Reputation: 3835

  • Go to File → Settings → Languages & Frameworks → Android SDK
  • Tick Show package details in the bottom right.
  • Untick the version(s) of Android you want to uninstall and click Ok.

enter image description here

Upvotes: 358

Przemyslaw
Przemyslaw

Reputation: 752

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!

Upvotes: 1

byaruhaf
byaruhaf

Reputation: 4743

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

Upvotes: 8

ir2pid
ir2pid

Reputation: 6156

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

Upvotes: 32

Tseh
Tseh

Reputation: 31

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

Upvotes: 3

Stefan
Stefan

Reputation: 667

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

Upvotes: 2

Kilian Obermeier
Kilian Obermeier

Reputation: 7168

For Mac users:

rm -r ~/Library/Android/sdk/system-images/android-XX

Upvotes: 24

Nilesh Sanyal
Nilesh Sanyal

Reputation: 690

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.

Upvotes: 74

Cijo
Cijo

Reputation: 2866

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.

Upvotes: 3

Related Questions