Bug 43349 - Sample ViewCell Custom Renderer fails
Summary: Sample ViewCell Custom Renderer fails
Status: VERIFIED ANSWERED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.3.1
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-08-15 13:04 UTC by Gerald Hoops
Modified: 2016-08-16 08:41 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED ANSWERED

Description Gerald Hoops 2016-08-15 13:04:11 UTC
Download example from here:
https://developer.xamarin.com/samples/xamarin-forms/CustomRenderers/ViewCell/

Open in Visual Studio. Adjust Configuration-Manager to run .driod in simulator and run.

Received Error:
Schweregrad	Code	Beschreibung	Projekt	Datei	Zeile	Unterdrückungszustand
Fehler		java.lang.OutOfMemoryError. Consider increasing the value of $(JavaMaximumHeapSize). Java ran out of memory while executing 'java.exe -jar "C:\Program Files (x86)\Android\android-sdk\build-tools\23.0.1\\lib\dx.jar" --no-strict --dex --output=obj\Debug\android\bin obj\Debug\android\bin\classes "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v6.0\mono.android.jar" C:\Users\geral\Downloads\ViewCell\Droid\obj\Debug\__library_projects__\FormsViewGroup\library_project_imports\formsviewgroup.jar C:\Users\geral\AppData\Local\Xamarin\Android.Support.Animated.Vector.Drawable\23.3.0.0\embedded\classes.jar C:\Users\geral\AppData\Local\Xamarin\Android.Support.Design\23.3.0.0\embedded\classes.jar C:\Users\geral\AppData\Local\Xamarin\Android.Support.v4\23.3.0.0\embedded\classes.jar C:\Users\geral\AppData\Local\Xamarin\Android.Support.v4\23.3.0.0\embedded\libs\internal_impl-23.3.0.jar C:\Users\geral\AppData\Local\Xamarin\Android.Support.v7.AppCompat\23.3.0.0\embedded\classes.jar C:\Users\geral\AppData\Local\Xamarin\Android.Support.v7.CardView\23.3.0.0\embedded\classes.jar C:\Users\geral\AppData\Local\Xamarin\Android.Support.v7.MediaRouter\23.3.0.0\embedded\classes.jar C:\Users\geral\AppData\Local\Xamarin\Android.Support.v7.MediaRouter\23.3.0.0\embedded\libs\internal_impl-23.3.0.jar C:\Users\geral\AppData\Local\Xamarin\Android.Support.v7.RecyclerView\23.3.0.0\embedded\classes.jar C:\Users\geral\AppData\Local\Xamarin\Android.Support.Vector.Drawable\23.3.0.0\embedded\classes.jar C:\Users\geral\AppData\Local\Xamarin\GooglePlayServices.AppIndexing\8.4.0\embedded\classes.jar C:\Users\geral\AppData\Local\Xamarin\GooglePlayServices.Base\8.4.0\embedded\classes.jar C:\Users\geral\AppData\Local\Xamarin\GooglePlayServices.Basement\8.4.0\embedded\classes.jar'	CustomRenderer.Droid	C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets	1853
Comment 1 Paul DiPietro [MSFT] 2016-08-15 17:54:51 UTC
Setting the heap size to 1G in the Android Options tab in the project settings will prevent this from occurring.
Comment 2 Gerald Hoops 2016-08-16 08:41:51 UTC
I confirm that it works with the 1G heap setting in the android advanced build options but I would suggest to add that change to the repository.