We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

java.lang.outofMemoryError when building Android application

Just trying to build a simple test application for Android and iOS in a Forms project - added dependencies as documented but when building the Android project it throws this error - iOS looks to compile and run ok.

Error java.lang.OutOfMemoryError. Consider increasing the value of $(JavaMaximumHeapSize). Java ran out of memory while executing 'java.exe -jar C:\Users\lindb_000\AppData\Local\Android\android-sdk\build-tools\23.0.1\\lib\dx.jar --no-strict --dex --output=obj\Release\android\bin obj\Release\android\bin\classes "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v6.0\mono.android.jar" obj\Release\__library_projects__\FormsViewGroup\library_project_imports\formsviewgroup.jar obj\Release\__library_projects__\Syncfusion.SfChart.Android\library_project_imports\bin\SfChart.Android.jar C:\Users\lindb_000\AppData\Local\Xamarin\Xamarin.Android.Support.Animated.Vector.Drawable\\embedded\classes.jar C:\Users\lindb_000\AppData\Local\Xamarin\Xamarin.Android.Support.Design\\embedded\classes.jar C:\Users\lindb_000\AppData\Local\Xamarin\Xamarin.Android.Support.v4\\embedded\classes.jar C:\Users\lindb_000\AppData\Local\Xamarin\Xamarin.Android.Support.v4\\embedded\libs\internal_impl-23.3.0.jar C:\Users\lindb_000\AppData\Local\Xamarin\Xamarin.Android.Support.v7.AppCompat\\embedded\classes.jar C:\Users\lindb_000\AppData\Local\Xamarin\Xamarin.Android.Support.v7.CardView\\embedded\classes.jar C:\Users\lindb_000\AppData\Local\Xamarin\Xamarin.Android.Support.v7.MediaRouter\\embedded\classes.jar C:\Users\lindb_000\AppData\Local\Xamarin\Xamarin.Android.Support.v7.MediaRouter\\embedded\libs\internal_impl-23.3.0.jar C:\Users\lindb_000\AppData\Local\Xamarin\Xamarin.Android.Support.v7.RecyclerView\\embedded\classes.jar C:\Users\lindb_000\AppData\Local\Xamarin\Xamarin.Android.Support.Vector.Drawable\\embedded\classes.jar' StickBuddy.Droid

4 Replies

SP Saravana Pandian Murugan Syncfusion Team June 13, 2016 09:05 AM UTC

Hi Jeff,

Thanks for contacting Syncfusion support.

The “java.lang.OutOfMemoryError” error is a Xamarin issue which occurs when the app size exceeds some limit. You can refer to the following bug report.



Right click the Android project and select Properties > Android Options > Advanced

Set the Java Heap size as 1G.

Saravana Pandian M.

JL Jeff Lindborg June 13, 2016 12:03 PM UTC

ah, cool - that did the trick, I'm off to the races now.
thanks much.

SP Saravana Pandian Murugan Syncfusion Team June 14, 2016 04:44 AM UTC

Hi Jeff,

Thanks for the update. We are glad to know that the given solution works. Please contact us if you need any further assistance.

Saravana Pandian M. 

HM Hemalatha Marikumar Syncfusion Team September 9, 2016 11:16 AM UTC

Hi Javier,

Thanks for your update.

We have checked the reported issue with SfRotator. We were unable to reproduce the reported issue at our end. Please update whether you are facing this issue when swiping the rotator control's item continuously or deploying the sample with the control (In which scenario you faced this issue). It will help to analyze further and provide an appropriate solution.

Hemalatha M.R.

Live Chat Icon For mobile
Up arrow icon