Mvvmcross升级到5.6.3错误APT0000:检索项目的父项时出错:找不到与给定名称“Theme.AppCompat.Dialog”匹配的资源

时间:2018-03-15 15:44:32

标签: xamarin.android styles themes mvvmcross upgrade

我刚刚将MvvmCross从5.4.2升级到5.6.3,现在我收到以下错误 对于styles.xml文件和themes.xml文件中的所有内容。

我没有改变目标SDK。我刚刚升级到5.6.3,我得到了这些错误,并且在构建应用程序时没有更新Resources.Designer.cs文件

Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Dialog'.   Styles.xml  2   
Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat'.  Styles.xml  2   
Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat'.  themes.xml  18  
Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.ActionBar.Solid'. themes.xml  18  
Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.ListPopupWindow'. themes.xml  18  
Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.ActionBar'.   themes.xml  18  
Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.ListView.DropDown'.   themes.xml  18  
Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.ActionBar.TabView'.   themes.xml  18  
Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.ProgressBar.Horizontal'.  themes.xml  20  
Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.ActionButton.CloseMode'.  themes.xml  20  
Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Spinner'. themes.xml  20  
Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat.Widget.ActionBar.Subtitle'.   themes.xml  23  
Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat.Widget.ActionBar.Menu'.   themes.xml  23

1 个答案:

答案 0 :(得分:0)

我认为这肯定是Visual Studio Nuget升级问题,当我回归到5.4.2时,同样的问题出现了。幸运的是我有一个shelveset,所以我得到了最新的代码并重新应用了shelveset并且构建工作正常。

然后我从5.4.2升级 - > 5.5.2 - > 5.6.3并没有重新出现问题