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.
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 Latest Version
- Build Agent : Windows
- Xamarin Android : 10.3.1.4
- Visual Studio : 16.6.
abc_ab_share_pack_mtrl_alpha.9.png
which is created by android sdks while build I guess. If possible can you change the machine in which you are running? – Nikhileshwar