Getting OutOfMemoryException in Xamarin

Srinivas Ch picture Srinivas Ch · Apr 25, 2016 · Viewed 34.9k times · Source

java.lang.OutOfMemoryError. Consider increasing the value of $(JavaMaximumHeapSize). Java ran out of memory while executing 'java.exe'

I am getting out of memory exception in my visualstudio Xamarin Project Please help me how can i resolve this issue.

Answer

Iain Smith picture Iain Smith · Apr 25, 2016

I would increase your build heap size.

Right click your Android Project > Properties > Android Options > Advanced > Java Max Heap Size.

enter image description here