Xamarin Build 在 aapt 失败(属性 *** allready 定义)



我们有用于夜间构建的CI服务器。我们还在 xamarin 生成的生成服务器上具有所需的依赖项。出于某种原因,本周发生了一些变化(我不知道是什么(,但现在在_UpdateAndroidResgen构建步骤中,aapt 正在定义两次属性,这导致构建由于某种原因失败。

Failed to generate resource table for split '' [20:53:33] ~objx64Release__library_projects__Xamarin.Android.Support.v7.AppCompatlibrary_project_importsresvaluesvalues.xml(2, 0): error APT0000: Attribute "navigationMode" already defined with incompatible format. [20:53:33] ~objx64Releaseresourcecache8D3A6302159015EB54DABA3378105A95resvaluesvalues.xml:73: Original attribute defined here. [20:53:33] ~objx64Release__library_projects__Xamarin.Android.Support.v7.AppCompatlibrary_project_importsresvaluesvalues.xml(2, 0): error APT0000: Attribute "displayOptions" already defined with incompatible format. [20:53:33] ~objx64Releaseresourcecache8D3A6302159015EB54DABA3378105A95resvaluesvalues.xml:73: Original attribute defined here. [20:53:33] ~objx64Release__library_projects__Xamarin.Android.Support.v7.AppCompatlibrary_project_importsresvaluesvalues.xml(2, 0): error APT0000: Attribute "actionBarSize" already defined with incompatible format. [20:53:33] ~objx64Releaseresourcecache8D3A6302159015EB54DABA3378105A95resvaluesvalues.xml:82: Original attribute defined here. [20:53:33] ~objx64Release__library_projects__Xamarin.Android.Support.v7.AppCompatlibrary_project_importsresvaluesvalues.xml(2, 0): error APT0000: Attribute "buttonTintMode" already defined with incompatible format. [20:53:33] ~objx64Releaseresourcecache8D3A6302159015EB54DABA3378105A95resvaluesvalues.xml:84: Original attribute defined here. [20:53:33] ~objx64Release__library_projects__Xamarin.Android.Support.v7.AppCompatlibrary_project_importsresvaluesvalues.xml(2, 0): error APT0000: Attribute "showDividers" already defined with incompatible format. [20:53:33] nothing matches overlay file notification_media_action.xml, for flavor v11 [20:53:33] nothing matches overlay file notification_media_cancel_action.xml, for flavor v11 [20:53:33] nothing matches overlay file notification_template_big_media.xml, for flavor v11 [20:53:33] nothing matches overlay file notification_template_big_media_narrow.xml, for flavor v11 [20:53:33] ~objx64Releaseresourcecache8D3A6302159015EB54DABA3378105A95resvaluesvalues.xml:86: Original attribute defined here. [20:53:33] ~objx64Release__library_projects__Xamarin.Android.Support.v7.AppCompatlibrary_project_importsresvaluesvalues.xml(2, 0): error APT0000: Attribute "showAsAction" already defined with incompatible format. [20:53:33] ~objx64Releaseresourcecache8D3A6302159015EB54DABA3378105A95resvaluesvalues.xml:90: Original attribute defined here. [20:53:33] ~objx64Release__library_projects__Xamarin.Android.Support.v7.AppCompatlibrary_project_importsresvaluesvalues.xml(2, 0): error APT0000: Attribute "backgroundTintMode" already defined with incompatible format. [20:53:33] ~objx64Releaseresourcecache8D3A6302159015EB54DABA3378105A95resvaluesvalues.xml:100: Original attribute defined here. [20:53:33] ~objx64Release__library_projects__Xamarin.Android.Support.Designlibrary_project_importsresvaluesvalues.xml(2, 0): error APT0000: Attribute "layout_scrollFlags" already defined with incompatible format. [20:53:33] ~objx64Releaseresourcecache1E8DAFD410D28824E5C274B16FD597B6resvaluesvalues.xml:14: Original attribute defined here. [20:53:33] ~objx64Release__library_projects__Xamarin.Android.Support.Designlibrary_project_importsresvaluesvalues.xml(2, 0): error APT0000: Attribute "collapsedTitleGravity" already defined with incompatible format. [20:53:33] ~objx64Releaseresourcecache1E8DAFD410D28824E5C274B16FD597B6resvaluesvalues.xml:17: Original attribute defined here. [20:53:33] ~objx64Release__library_projects__Xamarin.Android.Support.Designlibrary_project_importsresvaluesvalues.xml(2, 0): error APT0000: Attribute "expandedTitleGravity" already defined with incompatible format. [20:53:33] ~objx64Releaseresourcecache1E8DAFD410D28824E5C274B16FD597B6resvaluesvalues.xml:17: Original attribute defined here. [20:53:33] ~objx64Release__library_projects__Xamarin.Android.Support.Designlibrary_project_importsresvaluesvalues.xml(2, 0): error APT0000: Attribute "layout_collapseMode" already defined with incompatible format. [20:53:33] ~objx64Releaseresourcecache1E8DAFD410D28824E5C274B16FD597B6resvaluesvalues.xml:16: Original attribute defined here. [20:53:33] ~objx64Release__library_projects__Xamarin.Android.Support.Designlibrary_project_importsresvaluesvalues.xml(2, 0): error APT0000: Attribute "layout_anchorGravity" already defined with incompatible format. [20:53:33] ~objx64Releaseresourcecache1E8DAFD410D28824E5C274B16FD597B6resvaluesvalues.xml:19: Original attribute defined here. [20:53:33] ~objx64Release__library_projects__Xamarin.Android.Support.Designlibrary_project_importsresvaluesvalues.xml(2, 0): error APT0000: Attribute "fabSize" already defined with incompatible format. [20:53:33] ~objx64Releaseresourcecache1E8DAFD410D28824E5C274B16FD597B6resvaluesvalues.xml:21: Original attribute defined here. [20:53:33] ~objx64Release__library_projects__Xamarin.Android.Support.Designlibrary_project_importsresvaluesvalues.xml(2, 0): error APT0000: Attribute "tabMode" already defined with incompatible format. [20:53:33] ~objx64Releaseresourcecache1E8DAFD410D28824E5C274B16FD597B6resvaluesvalues.xml:28: Original attribute defined here. [20:53:33] ~objx64Release__library_projects__Xamarin.Android.Support.Designlibrary_project_importsresvaluesvalues.xml(2, 0): error APT0000: Attribute "tabGravity" already defined with incompatible format. [20:53:33] ~objx64Releaseresourcecache1E8DAFD410D28824E5C274B16FD597B6resvaluesvalues.xml:28: Original attribute defined here. [20:53:33] ~objx64Release__library_projects__Xamarin.Android.Support.Designlibrary_project_importsresvaluesvalues.xml(2, 0): error APT0000: String types not allowed (at 'fabSize' with value 'auto'). [20:53:33]
[20:53:33] The command exited with code 1.

我已经验证问题似乎出在构建运行器上,因为 4 天前通过的相同代码现在也因 aapt 错误而失败。还验证了android sdk和构建工具版本与以往相同。我尝试恢复,删除所有bin和obj文件夹以及xamarin缓存文件夹~\AppData\Local\Xamarin\我还重新安装了android构建工具。在这一点上真的非常难倒。

以前有人见过这个问题吗?

如果其他人遇到此问题 事实证明,这只是由于构建服务器空间不足。VCS 签出有足够的空间,但当 android 构建工具尝试创建的临时文件和缓存文件超过可用磁盘空间时,它们不会失败并显示有用的错误消息。

相关内容

  • 没有找到相关文章

最新更新