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

I was getting a java.lang.OutOfMemoryError while trying to compile a Xamarin Android application after adding HockeyApp.

I found to ways to resolve this.

The first option is to add a Environment Variable called _JAVA_OPTIONS and set it to -Xmx1g.  This sets the JVM heap size to 1GB.  You can either do this from the commandline by calling
Or you can edit your system environment variables:

The second and my preferred option was to to update the Java Max Heap Size in the Advanced Android Options tab in the Xamarin Android Visual Studio project:


telkahost said…
شرکت تلکا هاست پیشرو در میزبانی انواع وب سایت و هم چنین دارای انواع هاست فوق ارزان با کنترل پنل سی پنل میباشد.حتما از سایت ما دیدن کنید و از قیمت های مناسب برای انواع سرویس های وب و ثبت انواع دامنه شگفت زده شوید.
Shanejo said…
It's very useful blog post with inforamtive and insightful content and i had good experience with this information.I have gone through CRS Info Solutions Home which really nice. Learn more details About Us of CRS info solutions. Here you can see the Courses CRS Info Solutions full list.Find the best Hadoop Training with great faculty. Go to know about crs info solutions Workday Training program.
Kevin Davidson said…
This comment has been removed by the author.