본문 바로가기

StackOverflow

[Android] SDK의 시스템 이미지 용량이 너무 큰데, 지우면 안되나요?

http://stackoverflow.com/questions/30796230/android-sdk-folder-taking-a-lot-of-disk-space-do-we-need-to-keep-all-of-the-sys


Q: SDK의 시스템 이미지 (system-images)용량이 너무 큰데, 지우면 안되나요? 저는 에뮬레이터는 거의 안씁니다. 이걸 지우면 개발에 영향을 주나요?


(질문자: Virus)


A: 에뮬레이터 이용자만을 위한 것이고, 지워도 됩니다. 물론 지우면 절대로 에뮬레이터를 이용할 수 없습니다.


(답변자:Hi I'm Frogatto)


(역주: 저는 혹시나 하는 마음에... Android SDK manager에서 "체크해제"를 해서 삭제했습니다. 약 30기가가 줄어들었네요.)


http://stackoverflow.com/questions/30796230/system-images-in-android-sdk-folder-taking-a-lot-of-disk-space-do-we-need-to-ke


There are a lot of system images piling up on my disk in the android sdk folder. i hardly use the emulator. May be once in 6 months. Most of my development is directly on device. What i wanted to check was, will removing the system images (at least for the old APIS i.e. < 22) impact the development?

Also, the google apis folder seen below. Should i keep it for all versions or just the one in the latest suffice?

enter image description here

shareeditflag
  
 
If you don't use emulators, you can simply delete them to get rid of them! – Hi I'm Frogatto Jun 12 at 6:06
  
 
thanks! what about the google_apis folder .... can i remove those too ? will that impact my debugging on device? – Virus Jun 12 at 6:22
  
 
If anyone was interested, the disk space analyzer on image is called WinDirStat. – Tomáš Zato Nov 5 at 15:24

System images in Android SDK directory contain images of pre-installed Android operating systems, and are only used by emulators. If you use your real Android device for debugging, you no logger need them, you can remove them as well.

If you want to know more about those files, keep reading my answer!

  • x86 images: These images emulate devices with x86 architecture as their main processor's instruction set.

  • ARM: These are emulating processors with ARM architecture.

What is directory android-22 for? And why are there such android-* directories in the system images directory?

As you might already figured out the why, each system images is an installation of a particular Android version as well as a hardware architecture. So we should have multiple system images for different Android versions.

Am I allowed to remove system images?

In short, Yes. But after removing them, you are no longer able to use emulators. But you can still use your real Android device without any issues.

shareeditflag
  
 
Thanks for the detailed answer abforce ... makes it clear. One last doubt. The google_apis folder seen inside each android version in the screen shot above is also required only for the system images right? they can be removed too? – Virus Jun 12 at 7:56 
  
 
@Virus Yes, those can be also removed. – Hi I'm Frogatto Jun 12 at 7:59