I am having a weird issue on my machine where suddenly I cannot build my project without Java running out of memory. There have been no changes made to the project when this happened and the heap size is already set to 1G.
Here is the first line of the error:
java.lang.OutOfMemoryError. Consider increasing the value of $(JavaMaximumHeapSize). Java ran out of memory while executing 'java.exe -Xmx1G -jar C:\android-sdk\build-tools\23.0.3\\lib\dx.jar
Again, I have not added any additional libraries, added any code, or made any changes to the androidmanifest. The only thing I can imagine that happened is that something got installed automatically on my PC that broke this and I can't figure out what it was.
Does any one know what can cause this to happen?