可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):

问题:

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?

Screenshot above is from WinDirStat tool. -

https://windirstat.net

回答1:

System images are pre-installed Android operating systems, and are only used by emulators. If you use your real Android device for debugging, you no longer need them, so you can remove them all.

The cleanest way to remove them is using SDK Manager. Open up SDK Manager and uncheck those system images and then apply.

Also feel free to remove other components (e.g. old SDK levels) that are of no use.

回答2:

You do not need to keep the system images unless you want to use the emulator on your desktop. Along with it you can remove other unwanted stuff to clear disk space.

Adding as an answer to my own question as I've had to narrate this to people in my team more than a few times. Hence this answer as a reference to share with other curious ones.

In the last few weeks there were several colleagues who asked me how to safely get rid of the unwanted stuff to release disk space (most of them were beginners). I redirected them to this question but they came back to me for steps. So for android beginners here is a step by step guide to safely remove unwanted stuff.

Note

Do not blindly delete everything directly from disk that you "think" is not required occupying. I did that once and had to re-download.

Make sure you have a list of all active projects with the kind of emulators (if any) and API Levels and Build tools required for those to continue working/compiling properly.

First, be sure you are not going to use emulators and will always do

you development on a physical device. In case you are going to need

emulators, note down the API Levels and type of emulators you'll need.

Do not remove those. For the rest follow the below steps:

Steps to safely clear up unwanted stuff from Android SDK folder on the disk

Open the Stand Alone Android SDK Manager.

To open do one of the following:

Click the SDK Manager button on toolbar in android studio or eclipse

In Android Studio, go to settings and search "Android SDK". Click Android SDK -> "Open Standalone SDK Manager"

In Eclipse, open the "Window" menu and select "Android SDK Manager"

Navigate to the location of the android-sdk directory on your computer and run "SDK Manager.exe"

.

Uncheck all items ending with "System Image". Each API Level will have more than a few. In case you need some and have figured the list already leave them checked to avoid losing them and having to re-download.

.

Optional (may help save a marginally more amount of disk space): To

free up some more space, you can also entirely uncheck unrequired API levels.

Be careful again to avoid re-downloading something you are actually

using in other projects.

.

In the end make sure you have at least the following (check image below) for the remaining

API levels to be able to seamlessly work with your physical device.

In the end the clean android sdk installed components should look something like this in the SDK manager.

回答3:

I recommend two steps to address the bloated SDK problem.

First, I removed all but two versions of Android:

The current version, e.g. 6.0 Marshmallow as of this writing.

This version is to test and develop to the latest and greatest that the current Nexus handsets are running plus a couple of other brands.

An older version, e.g. 4.04 Ice Cream Sandwich.

This is to provide compatibility for the vast majority of handsets. You lose some functionality of the newer versions, but you gain a lowest common denominator of compatibility.

Second, I removed the emulators, and kept only the above two. I told it not to store the complete system state to disk, which it does indeed warn you will take up a lot of space, though it does make start-up faster. Just start up the emulator before you go make your coffee in the morning :)

If that's too much space, remove the emulators completely. Pick up a couple of older handsets off Ebay that will provide you with all the test platforms you need. They don't even have to be completely functional -- many apps don't need a SIM and cellular connectivity, for example.

My Android environment was taking up 32 gigs on my 128-gig Macbook Air. Couldn't keep doing this. Some day they'll make terabyte Macbook Airs but until then, got to slim down.

回答4:

I had 20.8 GB in the C:\Users\ggo\AppData\Local\Android\Sdk\system-images folder

(6 android images:

- android-10

- android-15

- android-21

- android-23

- android-25

- android-26

).

I have compressed the C:\Users\ggo\AppData\Local\Android\Sdk\system-images folder.

Now it takes only 4.65 GB.

I did not encountered any problem up to now...

Compression seems to vary from 2/3 to 6, sometimes much more:

回答5:

This is the minimal stuff I keep for day to day Android development (including production code). Latest versions from API 25 to API 27 (Nougat to Android P) included only, and you can work great with it.

To minimize even more, just keep any one of the below versions as same and keep a lower versions i.e. API 16 with same files downloaded as below.

回答6:

There is the way to safely removed system-image

Go in SDK Manager in toolbar :

Go in Android SDK :

In tab SDK Platforms, uncheck which platform you want unistall :

Click ok and confirm deletion :

回答7:

In this folder there are all emulator images. If you don't use emulator then you can delete this folder.

回答8:

In addition to the other answers, the following directory contains deletable system images on a Mac for Android Studio 2.3.3. I was able to delete the android-16 and android-17 directories without any problem because I didn't have any emulators which used them. (I kept the android-24 which was in use.)

$ pwd

/Users/gareth/Library/Android/sdk/system-images

$ du -h

2.5G ./android-16/default/x86

2.5G ./android-16/default

2.5G ./android-16/google_apis/x86

2.5G ./android-16/google_apis

5.1G ./android-16

2.5G ./android-17/default/x86

2.5G ./android-17/default

2.5G ./android-17

3.0G ./android-24/default/x86_64

3.0G ./android-24/default

3.0G ./android-24

11G .

android sdk no space,Android SDK folder taking a lot of disk space. Do相关推荐

  1. 【Jenkins学习 】解决Jenkins节点断开不可用,报错:Disk space is too low. Only 0.803GB left on /tmp.

    一.问题描述 刚刚有同事反馈Jenkins编译服务器挂了,然后得去排查为什么挂了. 进入到该编译节点 Agent Android_Phone_Server (Android APP 机房编译服务器) ...

  2. Android Studio - 如何更改Android SDK路径

    本文翻译自:Android Studio - How to Change Android SDK Path When I open Android SDK Manager from Android S ...

  3. Android Studio第一次下载安装SDK更改目录报错的

    第一次安装Android Studio需要下载Android SDK默认是下载到C:\windows\user\username\appDate\local\Android\Sdk里的. 因为SDK体 ...

  4. java ee 6 sdk中文版,Java EE 6 SDK+Eclipse JEE+Android ADT-Fun言

    很多时候,为了生存,需要不断的了解,学习新东西,于是头脑塞满了便便- -|||- -----------------------.. 按照自己的理解: JDK = Java Develope Kit ...

  5. android 编程klinon,android - 您尚未接受以下SDK组件的许可协议

    android - 您尚未接受以下SDK组件的许可协议 这个问题在这里已有答案: 自动接受所有SDK许可证                                     34个答案 我下载了 ...

  6. 百度推送 android7.1,【SDK版本更新】Android SDK 5.7.1

    [SDK版本更新]Android SDK 5.7.1 2017-07-19 Change Log: 1. 优化PushService竞争逻辑,提高服务稳定性: 2. 新增失败日志上传,用于优化绑定流程 ...

  7. 《ArcGIS Runtime SDK for Android开发笔记》——(4)、基于Android Studio构建ArcGIS Android开发环境...

    1.前言 2015年1月15日,发布ArcGIS Runtime SDK for Android v10.2.5版本.从该版本开始默认支持android studio开发环境,示例代码的默认开发环境也 ...

  8. 修改android studio中的avd sdk路径、avd sdk找不到的解决方案

    修改android studio中的avd sdk路径.avd sdk找不到的解决方案 参考文章: (1)修改android studio中的avd sdk路径.avd sdk找不到的解决方案 (2) ...

  9. 谷歌的android下拉刷新页面,Android SwipeRefreshLayout:谷歌官方SDK包中的下拉刷新

     <Android SwipeRefreshLayout:谷歌官方SDK包中的下拉刷新> 下拉刷新在如今移动开发中应用如此广泛和普遍,以至于谷歌干脆在SDK中给予支持.在android ...

最新文章

  1. IJCV2021 人脸关键点检测器PIPNet
  2. MATLAB系统命令
  3. mysql的基准测试_mysql基准测试 -benchmarks
  4. 荣耀v9系统升级 服务器,荣耀V9首次系统升级 带来一个有意思的新功能
  5. esp8266 防掉线方法_esp8266 smartconfig-智能配网分析和使用及注意事项
  6. [BZOJ 5074] 小B的数字
  7. 递归查找所有子代id php,PHP递归函数:从父ID获取子ID
  8. 如何解决ValueError: unknown is not supported
  9. mysql_affected_rows mysqli_关于mysqli_affected_rows()函数的详细介绍
  10. 如何编写开源项目的 README 文档
  11. 【数字IC设计】001. IC设计基础
  12. 协议森林02 小喇叭开始广播 (以太网与WiFi协议)
  13. Unable to import maven project: See logs for details
  14. 《事情正在起变化》《这是为什么》?
  15. 瑞芯微RK3288处理器性能,RK3288芯片参数介绍
  16. 【DL】第 6 章:语言建模
  17. 渗透测试国内外研究_【技术探究】冰箱门封技术现状与研究进展
  18. 提高工作效率,改善生活质量
  19. 深度优先搜索(Depth First Search)、广度优先搜索(Breadth First Search)
  20. 简单的PPO算法笔记

热门文章

  1. Dynamics 365中的应用程序介绍
  2. SpringMVC 文件上传
  3. VMware linux 虚拟机(ubuntu18.04) 安装TL-WDN5200H 2.0网卡驱动 完美使用(适用于vmware无法桥接网络使用此方法)
  4. VSCode 如何支持 Flow
  5. Tensorflow 学习笔记 vs code 的用户配置
  6. 【Python】下载所有 XKCD 漫画
  7. 通用职责分配软件原则之8-中介原则
  8. java组合与继承始示例_排列组合:用公式示例解释的差异
  9. oracle批量插入报错,[数据库]Mybatis 批量插入数据 关于Oracle 批量插入报错:ORA
  10. 我帮公司财务写了个“群发工资条”的Python脚本!