【问题标题】:Mvvmcross Upgrade to 5.6.3 error APT0000: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Dialog'Mvvmcross 升级到 5.6.3 错误 APT0000:检索项目的父项时出错:找不到与给定名称“Theme.AppCompat.Dialog”匹配的资源
【发布时间】:2018-03-15 15:44:32
【问题描述】:

我刚刚将 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

【问题讨论】:

  • 清理并重新构建。还要确保所有版本都匹配,并且 Android 支持库版本也匹配。

标签: xamarin.android styles themes mvvmcross upgrade


【解决方案1】:

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

然后我从 5.4.2 -> 5.5.2 -> 5.6.3 升级,问题没有再次出现

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-09-05
    • 2013-10-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-15
    相关资源
    最近更新 更多