將 Xamarin Forms 版本從 4.5. 升級到 5.0 后,出現以下例外。任何建議如何解決它?
例外影像

uj5u.com熱心網友回復:
檢查您的類Toolbar.axml,Tabbar.axml然后在此處將AndroidX類更新為類名映射
uj5u.com熱心網友回復:
好吧,錯誤解釋得很好
'Unable to convert instance of type 'Google.Android.Material.TextView.MaterialTextView' to type 'AndroidX.AppCompat.Widget.Toolbar'.'
您正在嘗試使用不同的物件投射物件。簡單地,這樣想
you are trying to cast a car into a carpet
所以,這是不可能的。這就是錯誤發生的原因。
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/323399.html
標籤:C# 安卓 。网 xamarin.forms
上一篇:.NETDI與運行時實作決議器
