Skip to content

MAUI Android environment check reports all SDK components as "NOT INSTALLED" with Android cmdline-tools 23.0 #3717

Open

Description

Environment

  • .NET MAUI extension: 11.0.114 (linux-x64)
  • OS: Ubuntu 24.04 x64
  • .NET SDK: 11.0.100-rc.1, maui-android workload
  • JDK 21 (OpenJDK)
  • Android cmdline-tools installed: 11.0, 12.0, 19.0, 23.0 (no latest)

Problem
The Android environment status says all required components are missing, even though they are installed:

✗ Android SDK - UPDATE REQUIRED
    - Path: '/home/<user>/Android/Sdk'
    ✗ platforms;android-36 - NOT INSTALLED
    ✗ build-tools;36.0.0 - NOT INSTALLED
    ✗ platform-tools - NOT INSTALLED
    ✗ cmdline-tools;latest - NOT INSTALLED

The JDK and SDK path are detected correctly. maui android sdk list --json exits with code 0 but returns [].

Cause
The MAUI CLI runs sdkmanager --list from the highest-versioned cmdline-tools/<version> folder. It ignores cmdline-tools/latest even when that symlink exists. In cmdline-tools 23.0, sdkmanager is deprecated: it's a shell wrapper that calls the new Android CLI (android --sdk=... sdk list --all). The new output has a different format: there's no Path | Version | Description | Location table header, and package paths use / instead of ;:

cmdline-tools 23.0:

Installed packages:
  build-tools/36.0.0        36.0.0      Android SDK Build-Tools 36
  platform-tools            37.0.1      Android SDK Platform-Tools
  platforms/android-36      2.0.0       Android SDK Platform 36

cmdline-tools 19.0:

Installed packages:
  Path                 | Version | Description                 | Location
  -------              | ------- | -------                     | -------
  build-tools;36.0.0   | 36.0.0  | Android SDK Build-Tools 36  | build-tools/36.0.0

The parser doesn't recognize the new format, so it finds no packages.

Steps to reproduce

  1. Install Android cmdline-tools 23.0 alongside older versions, or on its own.
  2. Run maui android sdk list --json (or open a MAUI project in VS Code).
  3. The command returns [], and the environment check reports every component as not installed.

Verified workaround
Moving cmdline-tools/23.0 out of the SDK directory makes the CLI fall back to 19.0. After that, maui android sdk list --json lists all installed packages correctly.

Expected behaviour

  • Parse the new Android CLI output format, or call android sdk list directly.
  • Prefer cmdline-tools/latest when it exists, matching Android tooling conventions.

Activity

  1. londospark commented on Nov 16, 2026

    @londospark

    Adding a data point from a Linux setup with the same versions, because the trigger looks narrower than "23.0 installed anywhere".

    Environment

    • .NET MAUI extension 11.0.114 (linux-x64), C# Dev Kit 11.11.98
    • .NET SDK 11.0.100 (GA, not RC), maui-android workload
    • JDK 25 (Temurin), Android SDK at ~/Android/Sdk
    • cmdline-tools layout: cmdline-tools/latest only, no versioned directories

    Before / after installing 23.0 at latest

    The SDK was already complete (platforms/android-37.0, build-tools/37.0.0, platform-tools, emulator). With the pre-23.0 copy at cmdline-tools/latest (unpacked by hand, so no package.xml), the environment check reported:

    ✓ Android SDK Build-Tools 37 - INSTALLED (version '37.0.0')
    ✓ Android SDK Platform-Tools - INSTALLED (version '37.0.1')
    ✓ Android SDK Platform 37.0 - INSTALLED (version '2')
    ✗ cmdline-tools;latest - NOT INSTALLED
    

    Detection worked; only the absent package.xml was flagged. I then installed cmdline-tools;latest through sdkmanager itself, so the metadata now exists (Pkg.Revision=23.0), and the next check reported:

    ✗ Android SDK - UPDATE REQUIRED
      ✗ platforms;android-37.0 - NOT INSTALLED
      ✗ build-tools;37.0.0 - NOT INSTALLED
      ✗ platform-tools - NOT INSTALLED
      ✗ cmdline-tools;latest - NOT INSTALLED
    

    Nothing else changed between those two runs, and sdkmanager --list_installed still lists every package, so this is purely the parse. It does not require a versioned cmdline-tools/<version> directory — the latest-only layout reproduces it, which may be worth covering in the fix.

    Separator evidence

    Swapping only the cmdline-tools copy, same machine and SDK, Path column:

    23.0:  platforms/android-37.0      build-tools/37.0.0
    22.0:  platforms;android-37.0       build-tools;37.0.0
    

    Happy to run a build or try a pre-release of the extension if it helps narrow the fix.


    Drafted with AI assistance: an AI coding agent helped investigate and write this. I verified the logs and reproduced the behaviour locally.

  2. steven-pearson commented on Nov 18, 2026

    @steven-pearson

    It appears that the MAUI tool cannot see the installed Android SDK. MAUI CLI Shows the following
    ℹ Installed packages:
    build-tools (4 major, 7 total)
    37.0.0-rc2 Android SDK Build-Tools 37-rc2 (+1 older)
    36.1.0 Android SDK Build-Tools 36.1 (+1 older)
    35.0.1 Android SDK Build-Tools 35.0.1 (+1 older)
    34.0.0 Android SDK Build-Tools 34

    However SDK Tools in Android Studio is showing 37.0.0 tool installed.

    MacOS with 11.0.114 installed

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions