Android.Views.InflateException: 'Binary XML file line #1: Binary XML file line #1: Error inflating class androidx.appcompat.widget.Toolbar'

I get the following error when trying to launch after installing SyncFusion. This is madness.

SFListView

Android.Views.InflateException: 'Binary XML file line #1: Binary XML file line #1: Error inflating class androidx.appcompat.widget.Toolbar'

5 Replies 1 reply marked as answer

HM Hemalatha Marikumar Syncfusion Team July 13, 2020 01:12 PM UTC

Hi Steven Marcus, 
 
Greetings from syncfusion.  
 
The reported issue is related with framework and related search gives the result like due to lower API version seems to be thrown this issue.  
 
 
 
Could you please share whether you have used API version? And you have mentioned like SfListView usage, we would like to let you know that the control is only available in Xamarin.Forms. Could you please in which platform did you mention this? 
 
Regards,
Hemalatha M.
 
 
 



Marked as answer

SM Steven Marcus July 13, 2020 03:05 PM UTC

I'm using Xamarin.Forms. 

Target Framework 9.0 this used to be 10.0 prior to installing Syncfusion as I read there's an issue with 10.0. Is this still the case. 

Changing Toolbar.axml to start with this:
  
Allowed it to build. I think this should work now. Testing now. 

--- Runs now. 

Thanks!


RS Ramya Soundar Rajan Syncfusion Team July 14, 2020 05:26 AM UTC

Hi Steven Marcus, 
 
Thanks for your update.  
  
Please get in touch with us if you would require any further assistance. 
 
Regards, 
Ramya S 



GD gabriel de sousa January 6, 2021 01:12 PM UTC

Hi, I change namespace in two files after migrate to AndroidX

Toolbar.axml:
androidx.appcompat.widget.Toolbar


Tabbar.axml:
com.google.android.material.tabs.TabLayout


YP Yuvaraj Palanisamy Syncfusion Team January 7, 2021 07:26 AM UTC

Hi Gabriel de souse, 
  
Thanks for your update. 
  
Regards, 
Yuvaraj. 


Loader.
Up arrow icon