好吧,它给了我9条style.xml错误,内容是
Error retrIEving parent for item: No resource found that matches the
given name ‘theme.AppCompat.light.DarkActionbar’ Error No resource
found that matches the given name: attr ‘windowNoTitle’.
就像我在xamarin中使用Visual Studio
<?xml version="1.0" enCoding="utf-8" ?><resources> <style name="theme.Splash" parent="androID:theme"> <item name="androID:windowBackground">@drawable/splashscreen</item> <item name="androID:windowNoTitle">true</item> <item name="androID:windowActionbar">false</item> </style> <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">false</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">#a84849</item> <!-- colorPrimaryDark is used for the status bar --> <item name="colorPrimaryDark">#444</item> <!-- colorAccent is used as the default value for colorControlActivated which is used to tint Widgets --> <item name="colorAccent">#a84849</item> <!-- You can also set colorControlnormal, colorControlActivated colorControlHighlight and colorSwitchThumbnormal. --> <item name="windowActionModeOverlay">true</item> <!--<item name="datePickerDialogtheme">@style/AppCompatDialogStyle</item>--> </style> <style name="AppCompatDialogStyle" parent="theme.AppCompat.light.Dialog"> <item name="colorAccent">#A84849</item> </style></resources>
解决方法:
您可能未引用androID支持v7 AppCompat库.它将显示如下错误.
请添加支持v7 AppCompat库的表格nuget:
您将建立成功:
以上是内存溢出为你收集整理的android-检索项目的父项时出错:找不到与给定名称’Theme.AppCompat.Light.DarkActionBar’匹配的资源. Xamarin视觉工作室全部内容,希望文章能够帮你解决android-检索项目的父项时出错:找不到与给定名称’Theme.AppCompat.Light.DarkActionBar’匹配的资源. Xamarin视觉工作室所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)