Bug 46699 - Unable to activate instance of type Xamarin.Forms.Platform.Android.ViewCellRenderer+ViewCellContainer and No constructor found for Xamarin.Forms.Platform.Android.ViewCellRenderer+ViewCellContainer
Summary: Unable to activate instance of type Xamarin.Forms.Platform.Android.ViewCellRe...
Status: RESOLVED NORESPONSE
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Paul DiPietro [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2016-11-10 11:22 UTC by Brijesh
Modified: 2017-06-19 19:06 UTC (History)
4 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:
RESOLVED NORESPONSE

Description Brijesh 2016-11-10 11:22:33 UTC
- I have project in xamarin.forms and i have issue in android version ( Xamarin.Forms version for android is Xamarin.Forms.1.5.0.6447)

- I have custom Listview rendered and it seems when navigating back to page where custom listview render created it is going to use same listview and try to create constructor for xamarin.forms's listview object and that is not available in core code below are the error log please help me for solution

Error Log:

(NotSupportedException) Unable to activate instance of type Xamarin.Forms.Platform.Android.ViewCellRenderer+ViewCellContainer from native handle 0xbed9fc7c (key_handle 0x3c662491).
  at xamarin.android.crashlytics.MonoException: (NotSupportedException) Unable to activate instance of type Xamarin.Forms.Platform.Android.ViewCellRenderer+ViewCellContainer from native handle 0xbed9fc7c (key_handle 0x3c662491).
  at at md5282f1122c1313907b9bf274dd2c2f344.ViewCellRenderer_ViewCellContainer.n_onMeasure(Native Method)
  at at md5282f1122c1313907b9bf274dd2c2f344.ViewCellRenderer_ViewCellContainer.onMeasure(ViewCellRenderer_ViewCellContainer.java:63)
  at at android.view.View.measure(View.java:18425)
  at at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5802)
  at at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1835)
  at at android.widget.LinearLayout.measureVertical(LinearLayout.java:725)
  at at android.widget.LinearLayout.onMeasure(LinearLayout.java:616)
  at at android.view.View.measure(View.java:18425)
  at at android.widget.ListView.setupChild(ListView.java:1968)
  at at android.widget.ListView.makeAndAddView(ListView.java:1877)
  at at android.widget.ListView.fillSpecific(ListView.java:1364)
  at at android.widget.ListView.layoutChildren(ListView.java:1704)
  at at android.widget.AbsListView.onLayout(AbsListView.java:2632)
  at at android.view.View.layout(View.java:16550)
  at at android.view.ViewGroup.layout(ViewGroup.java:5303)
  at at android.support.v4.widget.SwipeRefreshLayout.onLayout(SwipeRefreshLayout.java:596)
  at at android.view.View.layout(View.java:16550)
  at at android.view.ViewGroup.layout(ViewGroup.java:5303)
  at at md5282f1122c1313907b9bf274dd2c2f344.ListViewRenderer.n_onLayout(Native Method)
  at at md5282f1122c1313907b9bf274dd2c2f344.ListViewRenderer.onLayout(ListViewRenderer.java:65)
  at at android.view.View.layout(View.java:16550)
  at at android.view.ViewGroup.layout(ViewGroup.java:5303)
  at at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:29)
  at at md5282f1122c1313907b9bf274dd2c2f344.VisualElementRenderer_1.n_onLayout(Native Method)
  at at md5282f1122c1313907b9bf274dd2c2f344.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:49)
  at at android.view.View.layout(View.java:16550)
  at at android.view.ViewGroup.layout(ViewGroup.java:5303)
  at at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:29)
  at at md5282f1122c1313907b9bf274dd2c2f344.VisualElementRenderer_1.n_onLayout(Native Method)
  at at md5282f1122c1313907b9bf274dd2c2f344.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:49)
  at at android.view.View.layout(View.java:16550)
  at at android.view.ViewGroup.layout(ViewGroup.java:5303)
  at at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:29)
  at at md5282f1122c1313907b9bf274dd2c2f344.VisualElementRenderer_1.n_onLayout(Native Method)
  at at md5282f1122c1313907b9bf274dd2c2f344.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:49)
  at at android.view.View.layout(View.java:16550)
  at at android.view.ViewGroup.layout(ViewGroup.java:5303)
  at at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:29)
  at at md5282f1122c1313907b9bf274dd2c2f344.VisualElementRenderer_1.n_onLayout(Native Method)
  at at md5282f1122c1313907b9bf274dd2c2f344.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:49)
  at at android.view.View.layout(View.java:16550)
  at at android.view.ViewGroup.layout(ViewGroup.java:5303)
  at at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:29)
  at at md5282f1122c1313907b9bf274dd2c2f344.NavigationRenderer.n_onLayout(Native Method)
  at at md5282f1122c1313907b9bf274dd2c2f344.NavigationRenderer.onLayout(NavigationRenderer.java:47)
  at at android.view.View.layout(View.java:16550)
  at at android.view.ViewGroup.layout(ViewGroup.java:5303)
  at at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:29)
  at at md5282f1122c1313907b9bf274dd2c2f344.PlatformRenderer.n_onLayout(Native Method)
  at at md5282f1122c1313907b9bf274dd2c2f344.PlatformRenderer.onLayout(PlatformRenderer.java:63)
  at at android.view.View.layout(View.java:16550)
  at at android.view.ViewGroup.layout(ViewGroup.java:5303)
  at at android.widget.LinearLayout.setChildFrame(LinearLayout.java:2102)
  at at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:2091)
  at at android.widget.LinearLayout.onLayout(LinearLayout.java:1867)
  at at android.view.View.layout(View.java:16550)
  at at android.view.ViewGroup.layout(ViewGroup.java:5303)
  at at android.widget.FrameLayout.layoutChildren(FrameLayout.java:573)
  at at android.widget.FrameLayout.onLayout(FrameLayout.java:508)
  at at android.view.View.layout(View.java:16550)
  at at android.view.ViewGroup.layout(ViewGroup.java:5303)
  at at com.android.internal.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:494)
  at at android.view.View.layout(View.java:16550)
  at at android.view.ViewGroup.layout(ViewGroup.java:5303)
  at at android.widget.FrameLayout.layoutChildren(FrameLayout.java:573)
  at at android.widget.FrameLayout.onLayout(FrameLayout.java:508)
  at at android.view.View.layout(View.java:16550)
  at at android.view.ViewGroup.layout(ViewGroup.java:5303)
  at at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2308)
  at at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2021)
  at at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1180)
  at at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6558)
  at at android.view.Choreographer$CallbackRecord.run(Choreographer.java:777)
  at at android.view.Choreographer.doCallbacks(Choreographer.java:590)
  at at android.view.Choreographer.doFrame(Choreographer.java:560)
  at at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:763)
  at at android.os.Handler.handleCallback(Handler.java:739)
  at at android.os.Handler.dispatchMessage(Handler.java:95)
  at at android.os.Looper.loop(Looper.java:145)
  at at android.app.ActivityThread.main(ActivityThread.java:5832)
  at at java.lang.reflect.Method.invoke(Native Method)
  at at java.lang.reflect.Method.invoke(Method.java:372)
  at at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)
  at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)

No constructor found for Xamarin.Forms.Platform.Android.ViewCellRenderer+ViewCellContainer::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership)
Comment 1 adrianknight89 2016-11-10 17:46:46 UTC
This is a well-known issue. Also see https://bugzilla.xamarin.com/show_bug.cgi?id=39189
Comment 2 Paul DiPietro [MSFT] 2017-03-20 17:02:40 UTC
Brijesh, please report back if this is still occurring to you as the other referenced bug appears to have been resolved. If it is, a reproduction is helpful.
Comment 3 Paul DiPietro [MSFT] 2017-06-19 19:06:43 UTC
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket and attach a project that demonstrates the issue.