Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.
This repository was archived by the owner on Jul 13, 2026. It is now read-only.

Add JDK installation support (move from android-platform-support) #270

Closed

Description

@rmarinho

Summary

Add JDK installation support to Xamarin.Android.Tools.AndroidSdk so that consumers (MAUI DevTools CLI, IDE extensions, build tasks) can auto-install missing JDKs instead of just reporting errors.

Background

The android-platform-support (internal) repository already has a working JavaDependencyInstaller implementation that:

  • Discovers available JDK versions from the Xamarin Android Manifest Feed
  • Downloads Microsoft OpenJDK archives (per-platform/architecture)
  • Verifies downloads via SHA-1 checksums from the manifest
  • Extracts and validates the JDK installation

This capability should be moved to the public Xamarin.Android.Tools.AndroidSdk package.

Proposed API Surface

  • JdkInstaller.DiscoverAsync() — find available JDK versions from the manifest feed
  • JdkInstaller.InstallAsync(version, targetPath) — download, verify checksum, extract JDK
  • JdkInstaller.IsValid(jdkPath) — validate an existing JDK installation

Manifest Feed

JDK archives are listed in the Xamarin Android Manifest Feed (https://aka.ms/AndroidManifestFeed/d{version}), which includes:

  • Per-platform URLs (Windows, macOS, Linux)
  • Per-architecture variants (x64, aarch64)
  • SHA-1 checksums for download verification

Consumer

Related

  • MAUI DevTools spec §6.8: Shared Libraries & Code Reuse

Activity

  1. rmarinho commented on Feb 23, 2026

    @rmarinho
    MemberAuthor

    Implementation Progress

    I've started work on the MAUI DevTools integration. Here's the current state for JDK support:

    What exists today

    • JdkInfo class provides JDK detection (finding existing installations)
    • No JDK installation capability yet

    Dependencies

    This issue is blocked by dotnet/android#12068 (Manifest Feed Parsing) — we need the manifest feed to resolve:

    • Available JDK versions
    • Per-platform download URLs (Windows/macOS/Linux × x64/arm64)
    • SHA-1 checksums for verification

    Proposed implementation order

    1. Add manifest feed parsing for SDK/JDK download resolution (move from android-platform-support) android#12068 — Manifest feed parsing (prerequisite)
    2. This issue (Add JDK installation support (move from android-platform-support) #270) — JDK installation using manifest data

    Related work

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions