Unable to activate instance of type Syncfusion.Android.TreeView.ContentView from native handle.....

Im using sfTreeView with a dataTemplateSelector, and the control is working as it should, but I get these errors in the Forms project

Unable to activate instance of type Syncfusion.Android.TreeView.ContentView from native handle 0x61 (key_handle 0xcf615a0).

There is nothing special about my code or the views, its basically the same as the samples provided online.

The actual error shows in the templates.


We are running the latest version of the controls 18.4.0.39

5 Replies 1 reply marked as answer

SS SaiGanesh Sakthivel Syncfusion Team February 2, 2021 10:50 AM UTC

Hi Robert,   
   
Thank you for using syncfusion products.   
   
#Regarding Unable to activate instance of type Syncfusion.Android.TreeView.ContentView  
We have prepare the sample as per the provided information and have checked with AndroidX (Realme X2 pro) device (API 29). We regret to inform you that we could not replicate the reported scenario from our side.  Its working as expected. We have attached the tested sample for your reference and you can download the same from the following location.  
   
  
Please refer to the tested sample video in the following link for your reference.  
  
Please check the sample and let us know if you still facing the same issue? If not, please modify the sample based on your scenario and revert us back with the following details,   
  
·       Share the issue replicate video.  
·       Share the issue replicate reproduce.  
·       Share the syncfusion version and Xamarin form version used in sample.   

Regards, 
SaiGanesh Sakthivel 


Marked as answer

SS SaiGanesh Sakthivel Syncfusion Team February 2, 2021 10:50 AM UTC

Hi Robert,   
   
Thank you for using syncfusion products.   
   
#Regarding Unable to activate instance of type Syncfusion.Android.TreeView.ContentView  
We have prepare the sample as per the provided information and have checked with AndroidX (Realme X2 pro) device (API 29). We regret to inform you that we could not replicate the reported scenario from our side.  Its working as expected. We have attached the tested sample for your reference and you can download the same from the following location.  
   
  
Please refer to the tested sample video in the following link for your reference.  
  
Please check the sample and let us know if you still facing the same issue? If not, please modify the sample based on your scenario and revert us back with the following details,   
  
·       Share the issue replicate video.  
·       Share the issue replicate reproduce.  
·       Share the syncfusion version and Xamarin form version used in sample.   

Regards, 
SaiGanesh Sakthivel 



SS SaiGanesh Sakthivel Syncfusion Team February 2, 2021 10:50 AM UTC

Hi Robert,   
   
Thank you for using syncfusion products.   
   
#Regarding Unable to activate instance of type Syncfusion.Android.TreeView.ContentView  
We have prepare the sample as per the provided information and have checked with AndroidX (Realme X2 pro) device (API 29). We regret to inform you that we could not replicate the reported scenario from our side.  Its working as expected. We have attached the tested sample for your reference and you can download the same from the following location.  
   
  
Please refer to the tested sample video in the following link for your reference.  
  
Please check the sample and let us know if you still facing the same issue? If not, please modify the sample based on your scenario and revert us back with the following details,   
  
·       Share the issue replicate video.  
·       Share the issue replicate reproduce.  
·       Share the syncfusion version and Xamarin form version used in sample.   

Regards, 
SaiGanesh Sakthivel 



MS Matt Shumack February 3, 2021 03:48 AM UTC

Thanks for the example. We had already followed this.  I went through and deleted the parent and child viewcell datatemplates, and added them back again,  and hey presto the error has resolved itself.

Id hazard a guess and say that VS was having one of those days.....

Thanks for the help


SS SaiGanesh Sakthivel Syncfusion Team February 3, 2021 09:52 AM UTC

Hi Robert,  
  
Thank you for the update.  
  
We are glad to know that the provided solution is resolved the issue. Please let us know if you need any further assistance on this. 
 
Regards, 
SaiGanesh Sakthivel 


Loader.
Up arrow icon