简体   繁体   English

从android sdk中删除system.img是否安全?

[英]Is it safe to remove system.img from android sdk?

I realized that there are like 10 of them in my sdk . 我意识到我的sdk中有10个。 They make my sdk very large because each of these images are about 1 gb. 它们使我的sdk非常大,因为每个图像大约1 gb。 Would I damage my development environment if i delete some of them? 如果我删除其中一些,我会破坏我的开发环境吗? I use android studio btw 我使用android studio btw

These images contain different variants of Android emulators. 这些图像包含Android模拟器的不同变体。 You can delete some of them to make your SDK smaller. 您可以删除其中一些以缩小SDK。 But I strongly suggest you to do it from SDK manager. 但我强烈建议您从SDK管理器中执行此操作。 There you can find all of them and delete that you don't really need: 在那里你可以找到所有这些并删除你真正不需要的东西: 在此输入图像描述

Also there you can manage what else you need in SDK and what you don't. 此外,您还可以管理SDK中需要的其他内容以及不需要的内容。 Maybe you don't need old versions of SDK, maybe some documentation. 也许你不需要旧版本的SDK,也许还需要一些文档。 If the place is critical for you just go to SDK manager and remove all that you don't really whant to have in SDK. 如果这个地方对你很重要,那就去SDK管理器并删除你在SDK中真正没有的所有内容。 I think it is better than remove something manually. 我认为这比手动删除更好。 At least it is reliable way to change SDK installation 至少它是改变SDK安装的可靠方法

These images in the sdk are used to test different android versions on the emulator. sdk中的这些图像用于在模拟器上测试不同的Android版本。 If you have no need to test for a certain OS version you can safely delete its corresponding image file (along with the other images in that directory) 如果您不需要测试某个操作系统版本,则可以安全地删除其相应的映像文件(以及该目录中的其他映像)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM