Skip to content

[flutter_tools] Support new Android CLI and fix license validation on cmdline-tools 23+ - #191826

Draft
gmackall wants to merge 4 commits into
flutter:masterfrom
gmackall:try_android_binary
Draft

gmackall wants to merge 4 commits into
flutter:masterfrom
gmackall:try_android_binary

Conversation

@gmackall

@gmackall gmackall commented Aug 26, 2026 •

Copy link
Copy Markdown
Member

Description

Adds support for the new android CLI in Android SDK Command-line Tools 23.0+ (which deprecated sdkmanager), fixes license validation by checking disk licenses directly, and supports android sdk install for NDK provisioning.

Related Issues

Fixes #191487
Fixes #189936

Tests

  • Updated flutter_tools Android SDK and workflow unit tests.

Pre-launch Checklist

… cmdline-tools 23+

* Add AndroidSdkToolType to AndroidSdk, discovering the 'android' CLI in cmdline-tools 23+ with bounded path search while retaining sdkmanager fallback for cmdline-tools <= 22.
* Update AndroidLicenseValidator to verify license acceptance directly from disk (<sdk>/licenses/android-sdk-license) for Android CLI and when sdkmanager returns deprecation warnings.
* Update runLicenseManager to handle interactive license acceptance with Android CLI.
* Update installSdkComponent and Gradle NDK provisioning (FlutterPluginUtils) to support 'android sdk install' syntax.
* Add unit tests for Android CLI discovery, license verification, and NDK provisioning.

Fixes flutter#191487
Fixes flutter#189936
@gmackall gmackall added the CICD Run CI/CD label Aug 26, 2026
@github-actions github-actions Bot added platform-android Android applications specifically tool Affects the "flutter" command-line tool. See also t: labels. team-android Owned by Android platform team labels Aug 26, 2026
@jmagman

jmagman commented Sep 28, 2026

Copy link
Copy Markdown
Member

@gmackall are you still working on this? Seems like a more complete version of #191554

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

Labels

CICD Run CI/CD platform-android Android applications specifically team-android Owned by Android platform team tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

2 participants