[英]Performance Using Hyper-V to build in Android Studio
This is a very general question for anyone who uses a virtual machine to build android stuff. 对于使用虚拟机构建android程序的任何人来说,这都是一个非常普遍的问题。 I'm running Windows 8.1 64-bit in a Hyper-V VM with 2 cores and 2 gigs of RAM dedicated to the VM (which I could expand if necessary).
我正在Hyper-V VM中运行64位Windows 8.1,该操作系统具有2个内核和2 GB的VM专用RAM(如有必要,可以扩展)。 All that is installed on it is Android Studio (for complicated/unknown reasons, I can't run it on my main image).
它安装的全部是Android Studio(出于复杂/未知的原因,我无法在主映像上运行它)。 It works fine except that build times are in the minutes instead of seconds like I'm used to.
它的工作原理很好,除了构建时间是在数分钟内而不是像我以前那样在几秒内。 It's really slowing down my development (I'm still just learning, so I make a lot of mistakes that require rebuilds).
这确实在减慢我的开发速度(我仍在学习,所以我犯了很多需要重建的错误)。
Does anyone have any tips for optimizing Hyper-V or Android Studio builds that might cut my build times down (they range from 3 minutes minimum up to 12 minutes for a VERY simple app)? 是否有人有优化Hyper-V或Android Studio构建的技巧,这些技巧可能会减少我的构建时间(对于非常简单的应用,它们的范围从最少3分钟到最多12分钟)?
Thanks in advance, and apologies about the extremely general question! 在此先感谢您,并对非常普遍的问题表示歉意!
If you don't require all the windows 8.1 features in the android development environment, then install Microsoft Server 2012 instead and then install additional required features only. 如果您在Android开发环境中不需要所有Windows 8.1功能,请改为安装Microsoft Server 2012,然后仅安装其他必需功能。 It will improve the performance and speed dramatically.
它将大大提高性能和速度。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.