Xamarin Android 构建在 Azure Pipeline 中失败 [英] Xamarin Android build in failing in Azure Pipeline
问题描述
我正在尝试在 Azure Pipelines 中构建 Xamarin 应用程序.Xamarin Android 项目在 Windows/MAC 本地构建良好.但是 Xamarin Android 构建在 Azure Pipelines 上失败了.尝试在 Azure Pipelines 中构建 Xamarin.Android 应用程序时出现以下错误.
I am trying to build a Xamarin app in Azure Pipelines. Xamarin Android project is building well locally in Windows / MAC . But Xamarin Android build is failing on Azure Pipelines. I am getting the below error while trying to build the Xamarin.Android app in Azure Pipelines.
#[error]C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Aapt2.targets(87,3): Error APT2000: top-left corner pixel must be either opaque white or transparent.
##[error]Resources\drawable-hdpi-v4\abc_ab_share_pack_mtrl_alpha.9.png(0,0): Error APT2261: file failed to compile.
我在源代码中没有这个文件夹.这个文件夹(drawable-hdpi-v4)是自动生成的.我不知道这个文件夹/图像是如何自动创建的.配置如下
I don't have this folder in source code. This folder ( drawable-hdpi-v4) is automatically getting generated. I don't know how this folder / image is getting created automatically. Configurations are given below
- MS Build 最新版本
- 构建代理:Windows
- Xamarin 安卓:10.3.1.4
- Visual Studio:16.6.
推荐答案
将 Visual Studio 2019 更新到最新版本 (16.7.3) 和 Azure Pipeline Agent (2.174.2) 后,问题得到解决.
The issue got fixed after updating Visual Studio 2019 to latest version ( 16.7.3) and Azure Pipeline Agent ( 2.174.2).
这篇关于Xamarin Android 构建在 Azure Pipeline 中失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!