GooglePlayServicesComponents icon indicating copy to clipboard operation
GooglePlayServicesComponents copied to clipboard

java.lang.OutOfMemoryError.

Open winstongubantes opened this issue 6 years ago • 5 comments

Xamarin.Android Version (eg: 6.0):

Xamarin.Android 10.0.6.2

Operating System & Version (eg: Mac OSX 10.11):

Windows 10 10.0.17763 Build 17763

Google Play Services Version (eg: 8.4.0):

Xamarin.Firebase.Firestore 71.1705.0

Describe your Issue:

Severity Code Description Project File Line Suppression State Error java.lang.OutOfMemoryError. Consider increasing the value of $(JavaMaximumHeapSize). Java ran out of memory while executing 'java.exe -Dfile.encoding=UTF8 -Xmx1G -jar D:\Android\android-sdk\build-tools\28.0.3\lib\dx.jar --dex --no-strict --input-list=C:\Users\Admin\AppData\Local\Temp\tmp7B05.tmp --output obj\Debug\90\android\bin' WygoApp.Android

Steps to Reproduce (with link to sample solution if possible):

Everytime i add the Xamarin.Firebase.Firestore nuget i am getting this issue

Sample Project: https://1drv.ms/u/s!Ar9fLdRyzGGNgaMyGC-vyKo_U7wtfQ?e=fUICIs

winstongubantes avatar Jan 08 '20 02:01 winstongubantes

@winstongubantes

Thanks for the sample. Appreciated.

moljac avatar Feb 01 '20 12:02 moljac

Welcome @moljac , ill be following this. until now i have still no luck with issue.

winstongubantes avatar Feb 02 '20 23:02 winstongubantes

The same error is happening when installing 'Xamarin.Firebase.Auth 71.1605.0'

vhugogarcia avatar Feb 17 '20 21:02 vhugogarcia

Same error to me, I tried in a fresh project

EmmanueleVilla avatar Apr 10 '20 06:04 EmmanueleVilla

Same error to me, I tried in a fresh project

Maybe you already tried it, but I simply increased the heap size under project properties -> android build -> advanced to 4G and now it works

EmmanueleVilla avatar Apr 11 '20 09:04 EmmanueleVilla