1
votes

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.
1
Please add your yaml for the buildFabriBertani
This is occuring due to an incorrect image in 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
Reference links Similar SO queryNikhileshwar
Hello, is there any update for this issue? Please check whether this question can help you. If not, please post your YAML file so that we can investigate further.Jane Ma-MSFT
@Error280MonkeyFound: Thanks for the suggestion. I did tried with a different machine for the build. But still getting the same error.Ane

1 Answers

0
votes

The issue got fixed after updating Visual Studio 2019 to latest version ( 16.7.3) and Azure Pipeline Agent ( 2.174.2).