After upgrading to Windows 10 building a project in Android Studio makes the
PC unusable.
With Windows 10 the build did also take a long time, but the PC
was useable in the meantime.
The TaskManager shows that the java-build-task uses as much CPU as it can get.
Setting java and or gradle-options did not improve the CPU usage.
Currently using:
Android Studio 2.1.0
Gradle 2.1.0
Windows 10
Creating a new shortcut which launches Android Studio with restricted CPU affinity did the trick for me.
cmd.exe /c start "Android Studio" /affinity 0x03 "C:\Path\to\ANDROID_STUDIO"
C:\path\to\Android Studio\bin\studio.ico
The number for affinity are the hexadecimal encoded numbers of the cores to use.
Core4 Core3 Core2 Core1 = 0x0F //uses all cores
Core2 Core1 = 0x03 //uses only first 2 cores
I experienced no noticeable worsening in build times.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With