I just upgraded to Android Studio 2.2 and I can no longer create my project because the Gradle build always fails with several java.lang.OutOfMemoryError: unable to create new native thread
From my research, it seems that this may be more related to my operating system (OSX El Capitan) than to Gradle itself. However, I tried several workarounds without success.
My studio.vmoptions file is as follows:
# custom Android Studio VM options, see http:
ulimit -a gives me the following:
core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files (-n) 256 pipe size (512 bytes, -p) 1 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 709 virtual memory (kbytes, -v) unlimited
I tried increasing my maximum user processes to no avail. Does anyone else have this problem? My current JDK is 1.8.0_102
source share