Tags: pleiondev/flutter
Tags
[CP-beta]Fix Android license detection for cmdline-tools 23.0+ (flutt… …er#192132) This pull request is created by [automatic cherry pick workflow](https://github.com/flutter/flutter/blob/main/docs/releases/Flutter-Cherrypick-Process.md#automatically-creates-a-cherry-pick-request) Please fill in the form below, and a flutter domain expert will evaluate this cherry pick request. ### Issue Link: flutter#191487 ### Impact Description: Android SDK Command-line Tools 23.0 deprecated `sdkmanager --licenses` in favor of the new `android` CLI. When invoked, `sdkmanager --licenses` now only outputs a deprecation notice (`Warning: The --licenses option is no longer needed.`) rather than the parseable license summary `flutter doctor` previously depended on. As a result, `flutter doctor` fails to parse license status and reports `✗ Android license status unknown.` while prompting users to run `flutter doctor --android-licenses`, which fails to resolve the issue. ### Changelog Description: [flutter/191487] When using Android SDK Command-line Tools 23.0+ for Android, flutter doctor incorrectly reports "Android license status unknown". ### Workaround: 1. Downgrade Android SDK Command-line Tools to version 22.0 via the Android Studio SDK Manager or CLI. 2. If licenses have already been accepted on disk in `<Android-SDK>/licenses/`, Android Gradle builds still succeed and the `flutter doctor` warning can be safely ignored (if the user knows to ignore). ### Risk: What is the risk level of this cherry-pick? ### Test Coverage: Are you confident that your fix is well-tested by automated tests? ### Validation Steps: 1. Ensure Android SDK Command-line Tools 23.0 is installed (verify in `$ANDROID_HOME/cmdline-tools/latest/source.properties` that `Pkg.Revision=23.0`). 2. Run `flutter doctor -v`. 3. Verify that under `Android toolchain`, it reports `• All Android licenses accepted.` instead of `✗ Android license status unknown.` 4. (Optional negative check) Temporarily rename the `$ANDROID_HOME/licenses` directory, run `flutter doctor -v`, and verify it reports `Android licenses not accepted`. Restore the directory.
[flutter-3.48-candidate.0] Sync engine.version to 3816f7b (flutter#19… …1813) Updates the engine.version file from `c890f62b2e7a1cd1a9591d5587d619237dfe8b3b` to `3816f7b7a3d4c665ccf850087f39e5e931069752`.
[flutter-3.47-candidate.0] Sync engine.version to a804b26 (flutter#19… …1840) Part of flutter#191758
[flutter-3.48-candidate.0] Sync engine.version to c890f62 (flutter#19… …1365) Updates the engine.version file from `8b25e9697edda8ca0e490c82c73e70ab40630627` to `c890f62b2e7a1cd1a9591d5587d619237dfe8b3b`.
[flutter-3.48-candidate.0] Sync engine.version to 8b25e96 (flutter#19… …0859) Updates the engine.version file from `None (New File)` to `8b25e9697edda8ca0e490c82c73e70ab40630627`.
[flutter-3.47-candidate.0] Sync engine.version to f88005a (flutter#19… …0585) Updates the engine.version file from `effb186f3172afa211230de73d83af2788e44324` to `f88005a259ba379c2c1156178aa1870936be7b7f`.
Update CHANGELOG.md for 3.44.9 (flutter#190621) flutter#190184 <- omitted in the changelog, not an end user facing change. flutter#190550 If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance. **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.
[flutter-3.47-candidate.0] Sync engine.version to effb186 (flutter#19… …0247) Updates the engine.version file from `26c792210cd4fcd069fd5467663b1ec2965999b1` to `effb186f3172afa211230de73d83af2788e44324`. Part of flutter#190243
PreviousNext