Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: MonoAndroid build on Windows failing due to missing Java SDK #4531

Closed
1 of 4 tasks
gtbuchanan opened this issue Nov 17, 2023 · 2 comments
Closed
1 of 4 tasks

Comments

@gtbuchanan
Copy link

gtbuchanan commented Nov 17, 2023

What happened?

We have various projects that target monoandroid13.0. The Azure Pipelines builds for these projects were confirmed working yesterday morning. Today, the builds are failing with errors due to a missing Java SDK. I would expect the Java SDK to be included in the VS installation to support Android workloads. I anticipate this is related to the Visual Studio 17.8 & .NET 8 SDK release.

Versions

Microsoft-hosted agent windows-2022

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

windows-2022

Version controll system

Git

Relevant log output

15:14:14 [DBG] C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Legacy.targets(254,5): error XA0031: Java SDK 11.0 or above is required when using $(TargetFrameworkVersion) v13.0. [D:\a\1\s\src\**redacted**.csproj::TargetFramework=MonoAndroid13.0]
15:14:14 [DBG] C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Legacy.targets(254,5): error XA0031: Download the latest JDK at: https://aka.ms/msopenjdk [D:\a\1\s\src\**redacted**.csproj::TargetFramework=MonoAndroid13.0]
15:14:14 [DBG] C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Legacy.targets(254,5): error XA0031: Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11 [D:\a\1\s\src\**redacted**.csproj::TargetFramework=MonoAndroid13.0]

https://dev.azure.com/energyworldnet/proddev/_build/results?buildId=13228&view=logs&s=7d4e458d-e0e0-5f89-c72d-7371ef61b09b

@gtbuchanan
Copy link
Author

Might be related to actions/runner-images#8837

@gtbuchanan
Copy link
Author

I realized this is probably the wrong repo since the actions/runner-images issue template has an option for "Azure DevOps". I'll just follow the other issues I linked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant