C# 无法转换类型为';Android.Support.V7.Widget.AppCompatTextView';输入';Android.Support.V7.Widget.Toolbar';安卓7.0
我正在设备中运行一个应用程序,在安卓7.0中运行时遇到了这个错误 我正在使用以下版本: 我的xamarin版本是:C# 无法转换类型为';Android.Support.V7.Widget.AppCompatTextView';输入';Android.Support.V7.Widget.Toolbar';安卓7.0,c#,xamarin,xamarin.android,C#,Xamarin,Xamarin.android,我正在设备中运行一个应用程序,在安卓7.0中运行时遇到了这个错误 我正在使用以下版本: 我的xamarin版本是: 真的 真的 #39b549 #4D #4D 真的 @样式/应用程序对话框样式 #39b549 @可拉伸/飞溅屏幕 我不知道是什么导致了这一错误,甚至不知道在哪里可以找到更多的东西给予。 其他版本的android运行良好。您是否使用XF开发应用程序?您是否在Android项目中修改了工具栏.axml文件?请显示工具栏的布局。如果您可以检查的话,我已经在组件页面上创建了一个问题
真的
真的
#39b549
#4D
#4D
真的
@样式/应用程序对话框样式
#39b549
@可拉伸/飞溅屏幕
我不知道是什么导致了这一错误,甚至不知道在哪里可以找到更多的东西给予。
其他版本的android运行良好。您是否使用XF开发应用程序?您是否在Android项目中修改了
工具栏.axml
文件?请显示工具栏的布局
。如果您可以检查的话,我已经在组件页面上创建了一个问题。
<?xml version="1.0" encoding="utf-8" ?>
<resources>
<style name="MainTheme" parent="MainTheme.Base">
</style>
<!-- Base theme applied no matter what API -->
<style name="MainTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
<!--If you are using revision 22.1 please use just windowNoTitle. Without android:-->
<item name="windowNoTitle">true</item>
<!--We will be using the toolbar so no need to show ActionBar-->
<item name="windowActionBar">true</item>
<!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette -->
<!-- colorPrimary is used for the default action bar background -->
<item name="colorPrimary">#39b549</item>
<!-- colorPrimaryDark is used for the status bar -->
<item name="colorPrimaryDark">#4d4d4d</item>
<!-- colorAccent is used as the default value for colorControlActivated
which is used to tint widgets -->
<item name="colorAccent">#4d4d4d</item>
<!-- You can also set colorControlNormal, colorControlActivated
colorControlHighlight and colorSwitchThumbNormal. -->
<item name="windowActionModeOverlay">true</item>
<item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item>
</style>
<style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog">
<item name="colorAccent">#39b549</item>
</style>
<style name="MyTheme.Base" parent="Theme.AppCompat.Light">
</style>
<style name="MyTheme.Splash" parent ="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowBackground">@drawable/splash_screen_jpg</item>
</style>
</resources>