Java.Lang.OutOfMemoryError in Xamarin Forms

Hi all,

I have been facing this problem from last one day.please any one can help me ...

i have increased Java Heap Size to 1G(right click on project ->Properties->Android Options->Advanced Tab->Java Max Heap Size->1G ) But Still its not working for me.

and also i have added the below code to .csproj file

     <PropertyGroup>
        <JavaMaximumHeapSize>1G</JavaMaximumHeapSize>
      </PropertyGroup>

But it is also not working for me

and again i added in AndroidManifest the following code

    <application android:label="MyApp" android:largeHeap="true"></application>

But Nothing happened .still i am facing same problem..

please any one can help me out

Answers

  • ClintStLaurentClintStLaurent USUniversity ✭✭✭✭✭

    Your code ran the device out of memory. I doubt there is anything anyone here can do. You need to go through your code and find where all the memory is going, what objects you need to dispose of and so on.

Sign In or Register to comment.