When building an Xamarin.Android project on Azure Devops, [setting the JavaSdkDirectory property is required](https://github.com/microsoft/azure-pipelines-image-generation/blob/2849802d6f7f9fda363bb6b2a7d2e006707e43e5/images/win/Vs2019-Server2019-Readme.md#known-issues), as the environment variable has no effect. This property is not propagated to the Uno.SourceGeneration build context, making the generation fail. ## Workaround Create or update a `Directory.Build.props` file with this content: ```xml <Project> <PropertyGroup> <JavaSdkDirectory Condition="'$(JavaSdkDirectory)'=='' and '$(JAVA_HOME_8_X64)'!=''">$(JAVA_HOME_8_X64)</JavaSdkDirectory> </PropertyGroup> </Project> ```