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.
I would increase your build heap size. Right click your Android Project > Properties > Android Options > Advanced > Java Max Heap Size.
If you haven't seen any OOM in your Android application, then you are going to have one in future. The OutOfMemoryError comes in Android due to memory leaks. So, in order to remove the OutOfMemoryError, you need to remove memory leaks from your Android application.
OutOfMemoryError: Java heap space. 1) An easy way to solve OutOfMemoryError in java is to increase the maximum heap size by using JVM options "-Xmx512M", this will immediately solve your OutOfMemoryError.
I would increase your build heap size.
Right click your Android Project > Properties > Android Options > Advanced > Java Max Heap Size.
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