After upgrading the Xamarin Forms version from 4.5. To 5.0, the following exception appeared. Any suggestions how to solve it ??
CodePudding user response:
Well the error is well explained
'Unable to convert instance of type 'Google.Android.Material.TextView.MaterialTextView' to type 'AndroidX.AppCompat.Widget.Toolbar'.'
You are trying cast an object with a different object. Simply, think like this
you are trying to cast a car into a carpet
So, it's not possible. That's why the error occured.
CodePudding user response:
Check your Toolbar.axml
and Tabbar.axml
then update your class to AndroidX
class name mapping here