简体   繁体   English

使用Hyper-V在Android Studio中构建的性能

[英]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.

相关问题 使用 Hyper-V 进行 Android 开发 - Android development with Hyper-V on Visual Studio 2015无法启动Android Simulator(Hyper-V) - Visual Studio 2015 can not launch Android Simulator(Hyper-V) Android 设备管理器 - 未配置 Hyper-V - Android Device Manager - Hyper-V not configured 带有Hyper-V的原始Android模拟器 - Original Android Emulator with Hyper-V 我可以在Microsoft hyper-v虚拟机中运行Android Studio(Android SDK模拟器)吗? - Can I run Android Studio (Android SDK emulator) in a Microsoft hyper-v virtual machine? Android Studio一直要求在无限循环中关闭Hyper-V - Android Studio keeps asking to turn off Hyper-V in an infinite loop 安装hxam后Android Studio硬件加速问题启用虚拟化nad禁用hyper-v - Android Studio Hardware acceleration issue after installing hxam enable virtualization nad disabling hyper-v 即使安装并启用了 Hyper-V,Visual Studio 中的 Android 模拟器也无法启动 - Android emulator in visual studio not launching even though Hyper-V is installed and enabled 适用于Android的Hyper-V / Visual Studio模拟器无法连接到网络 - Hyper-V / Visual Studio Emulator for Android can't connect to network 我是否需要Hyper-V从Visual Studio 2015中调试我的android应用程序? - Do i need Hyper-V to debug my android app from within Visual Studio 2015?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM