You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Turn Hybrid Composition++ (HCPP) on by default #189939
P2Important issues not at the top of the work listengineflutter/engine related. See also e: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform team
We see issues with Reproducible Builds in this context here:
both sides use the same Flutter version
neither side specified --[no-]enable-hcpp
one side (usually our builders) see <meta-data android:name="io.flutter.embedding.android.EnableHcpp" android:value="true"/> injected to their AndroidManifext.xml (as if it was turned on automatically), the other side has no such property.
specifying --no-enable-hcpp, simply inserts <meta-data android:name="io.flutter.embedding.android.EnableHcpp" android:value="false"/> then, so builds again do not match (unless both sides explicitly specify, I guess)
I don't think this is the intended behavior. We could not yet figure out what triggers this – but it should definitely be aligned. Until found and fixed: is there anything that can be done to keep that line out of the AndroidManifest.xml altogether (unless --[no-]enable-hcpp was explicitly specified)?
I'm asking this here as it seems as if, under some circumstances, HCPP is already enabled by default.
@jmagman I'll ask upstream to supply theirs (got one of the affected devs on chat; there were multiple such cases here already). To get the output here, we need to trick our builder (by injecting it to the build recipe). Will come back here then.
We've compared environments a bit. Upstream uses Github runners, which we can match pretty close. Which brought me to the point: didn't Github just update their runners, having ubuntu:stable now pointing to 26.04 (resolute) instead of 24.04 (noble)? I've got an updated build just running as I write this, let's see if that changes anything.
Difference to the previous ones, in this case: switching from Debian bookworm with JDK 17 (which was our default setup we're slowly "moving up" currently) to Ubuntu resolute with JDK 21.
Remaining the same: Flutter 3.50.0
This made no difference – I still get the same, byte-identical APK I did before (sha256sum compared). Next run, I left out the --target-platform=android-arm64 I had specified, but upstream had not (that difference often "plays" with the native manifest, too, so it might be worth a try – made no difference either). So let's call the doctor…
Meanwhile: upstream sent this link for their doctor output. Mine is here:
flutter doctor -v
[!] Flutter (Channel [user-branch], 3.50.0, on Ubuntu 26.04.1 LTS 6.12.113+deb13-amd64, locale C.UTF-8) [13ms]
! Flutter version 3.50.0 on channel [user-branch] at /home/runner/work/PeriodicTable/PeriodicTable/flutter
Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
If that doesn't fix the issue, try deleting the 'bin/cache/flutter.version.json' file in your Flutter SDK directory and then reinstall Flutter by following instructions at https://flutter.dev/setup.
! The flutter binary is not on your path. Consider adding /home/runner/work/PeriodicTable/PeriodicTable/flutter/bin to your path.
! The dart binary is not on your path. Consider adding /home/runner/work/PeriodicTable/PeriodicTable/flutter/bin to your path.
• Upstream repository https://github.com/flutter/flutter
• Framework revision ab2912035e (9 days ago), 2026-11-09 08:50:21 -0800
• Engine revision 371f77202a
• Dart version 3.14.0
• DevTools version 2.61.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, enable-record-use, enable-swift-package-manager, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration, enable-riscv64, enable-hcpp
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
• ANDROID_HOME = /usr/local/lib/android/sdk
✗ Android SDK file not found: adb.
• Try re-installing or updating your Android SDK,
visit https://flutter.dev/to/linux-android-setup for detailed instructions.
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) [5ms]
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
Comparing the two doctors, I've adjusted my recipe to git checkout with the .git suffix, and also add export PATH=${PATH}:$(pwd)/flutter/bin as well as flutter channel stable immediately following that. The doctor changes minimally, resulting APK remains the same:
new doctor
+ flutter doctor -v
[!] Flutter (Channel [user-branch], 3.50.0, on Ubuntu 26.04.1 LTS 6.12.113+deb13-amd64, locale C.UTF-8) [19ms]
! Flutter version 3.50.0 on channel [user-branch] at /home/runner/work/PeriodicTable/PeriodicTable/flutter
Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
If that doesn't fix the issue, try deleting the 'bin/cache/flutter.version.json' file in your Flutter SDK directory and then reinstall Flutter by following instructions at https://flutter.dev/setup.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ab2912035e (9 days ago), 2026-11-09 08:50:21 -0800
• Engine revision 371f77202a
• Dart version 3.14.0
• DevTools version 2.61.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, enable-record-use, enable-swift-package-manager, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration, enable-riscv64, enable-hcpp
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
• ANDROID_HOME = /usr/local/lib/android/sdk
✗ Android SDK file not found: adb.
• Try re-installing or updating your Android SDK,
visit https://flutter.dev/to/linux-android-setup for detailed instructions.
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) [5ms]
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[!] Proxy Configuration [3ms]
• HTTP_PROXY is set
! NO_PROXY is not set
[✓] Connected device (1 available) [8ms]
• Linux (desktop) • linux • linux-x64 • Ubuntu 26.04.1 LTS 6.12.113+deb13-amd64
[✓] Network resources [657ms]
• All expected network resources are available.
Funny it still insists on not being on the stable channel. Not sure if relevant: our build runs in ephemeral Podman containers. Upstream uses Github runners.
Fun fact: the doctor reports enable-hcpp as feature flag with our build. Why? That's not the case with the upstream doctor output. I suspect something with the cache at the Github runners?
I think this is (quirk?/bug?) in how feature flags work. Your doctor shows you as being on
Flutter version 3.50.0 on channel [user-branch]
Which, for purposes of feature flag selection is (I believe) identical to master, despite it being the same commit as stable. I think this is because feature flags depend on the channel, which in turn depends on the actual git branch name (not just commit).
So basically, to get stable feature flags you need the channel to be reported as stable in flutter doctor (not just to be on stables commit)
Note that this means you'll get all of master's feature flags, it isn't specific to the hcpp-related one
Thanks! And yes, I wonder why it says the same even after running flutter channel stable. Would I need to perform another step in addition then for that? For RB, I need to match the Flutter version exactly, so the "other step" must not change that.
I've never had these issues in the past, and our builder contains almost 1k apps, with close to 100 being Flutter. So I'm also a bit confused this pops up only now (I run those builders for about 3 years now). I'm not a Flutter dev, so please forgive my ignorance 🙈
Despite of flutter channel stable followed by flutter upgrade, the doctor insists I'm still on Flutter 3.50.0 • channel [user-branch]. The interesting part of the more detailed log below:
+ flutter channel stable
...
Successfully switched to flutter channel 'stable'.
To ensure that you're on the latest build from this channel, run 'flutter upgrade'
+ flutter upgrade
Flutter is already up to date on channel [user-branch]
Flutter 3.50.0 • channel [user-branch] • https://github.com/flutter/flutter.git
So it says it successfully switched to the stable channel, and then says it's on user-branch. What do I miss there?
more detailed log
+ flutter channel stable
Downloading Linux x64 Dart SDK from Flutter engine 371f77202a73e8dff57a8b3bff75bca55c090aee...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 254.9M 100 254.9M 0 0 7.45M 0 00:34 00:34 7.92M
Building flutter tool...
Got dependencies.
[1/10] Material Fonts 110ms
[2/10] Gradle Wrapper 11ms
[3/10] Flutter SDK
├─ [1/5] sky_engine 30ms
├─ [2/5] flutter_gpu 16ms
├─ [3/5] flutter_patched_sdk 60ms
├─ [4/5] flutter_patched_sdk_product 93ms
└─ [5/5] linux-x64 343ms
[10/10] linux-x64/font-subset 69ms
Switching to flutter channel 'stable'...
You may need to restart any open editors for them to read new settings.
flutter pub get
Resolving dependencies...
Downloading packages...
cupertino_ui 1.1.6 (1.1.7 available)
material_color_utilities 0.13.0 (0.13.1 available)
test_api 0.7.14 (0.7.15 available)
url_launcher_android 6.3.33 (6.3.35 available)
vector_math 2.4.3 (2.4.4 available)
Got dependencies!
5 packages have newer versions incompatible with dependency constraints.
Try flutter pub outdated for more information.
flutter doctor -v
[!] Flutter (Channel [user-branch], 3.50.0, on Ubuntu 26.04.1 LTS 6.12.113+deb13-amd64, locale C.UTF-8) [18ms]
! Flutter version 3.50.0 on channel [user-branch] at /home/runner/work/PeriodicTable/PeriodicTable/flutter
Currently on an unknown channel. Run flutter channel to switch to an official channel.
If that doesn't fix the issue, try deleting the 'bin/cache/flutter.version.json' file in your Flutter SDK directory and then reinstall Flutter by following instructions at https://flutter.dev/setup.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ab2912035e (9 days ago), 2026-11-09 08:50:21 -0800
• Engine revision 371f77202a
• Dart version 3.14.0
• DevTools version 2.61.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, enable-record-use, enable-swift-package-manager, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration, enable-riscv64, enable-hcpp
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
• ANDROID_HOME = /usr/local/lib/android/sdk
✗ Android SDK file not found: adb.
• Try re-installing or updating your Android SDK,
visit https://flutter.dev/to/linux-android-setup for detailed instructions.
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) [5ms]
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
Thanks! And yes, I wonder why it says the same even after running flutter channel stable. Would I need to perform another step in addition then for that? For RB, I need to match the Flutter version exactly, so the "other step" must not change that.
I've never had these issues in the past, and our builder contains almost 1k apps, with close to 100 being Flutter. So I'm also a bit confused this pops up only now (I run those builders for about 3 years now). I'm not a Flutter dev, so please forgive my ignorance 🙈
Despite of flutter channel stable followed by flutter upgrade, the doctor insists I'm still on Flutter 3.50.0 • channel [user-branch]. The interesting part of the more detailed log below:
+ flutter channel stable
...
Successfully switched to flutter channel 'stable'.
To ensure that you're on the latest build from this channel, run 'flutter upgrade'
+ flutter upgrade
Flutter is already up to date on channel [user-branch]
Flutter 3.50.0 • channel [user-branch] • https://github.com/flutter/flutter.git
So it says it successfully switched to the stable channel, and then says it's on user-branch. What do I miss there?
more detailed log
Hmm perhaps it's the additional tool caching I mentioned in #196916
can you run rm -f bin/cache/flutter.version.json from the root of your flutter checkout?
+ flutter doctor -v
[!] Flutter (Channel [user-branch], 3.50.0, on Ubuntu 26.04.1 LTS 6.12.113+deb13-amd64, locale C.UTF-8) [16ms]
! Flutter version 3.50.0 on channel [user-branch] at /home/runner/work/PeriodicTable/PeriodicTable/flutter
Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
If that doesn't fix the issue, try deleting the 'bin/cache/flutter.version.json' file in your Flutter SDK directory and then reinstall Flutter by following instructions at https://flutter.dev/setup.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ab2912035e (9 days ago), 2026-11-09 08:50:21 -0800
• Engine revision 371f77202a
• Dart version 3.14.0
• DevTools version 2.61.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, enable-record-use, enable-swift-package-manager, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration, enable-riscv64, enable-hcpp
Now it claims to be on an "unknown channel" – telling me I should use flutter channel to switch to an official channel – what I just did before calling the doctor.
The description in the issue you've linked brings me to the idea if the following might be a work-around until this is aligned:
• ANDROID_HOME = /usr/local/lib/android/sdk
✗ Android SDK file not found: adb.
• Try re-installing or updating your Android SDK,
visit https://flutter.dev/to/linux-android-setup for detailed instructions.
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) [5ms]
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
Now I'm confused: did the doctor lie? But meh, at least we seem to have a work-around there! Will make another "clean run" now without calling the doctor (for clean RB logs) – and report back after that has completed. If that succeeds again, we can carefully name this a work around. I see if I can find one of the other "failed candidates" then to repeat the dance; the more confirmations we have for this, the more confident we can be naming this a "working approach".
Apologies for the delays between my replies, but it always takes at least 6 minutes until the Flutter clone is complete (i.e. close to 10 min until the build reaches the point we need to check). Luckily (and thanks to Podman Desktop easily) I can watch the build process remotely…
Bad news: having removed the doctor call, it's no longer RB. That seems to have been just a "lucky shot" 😢
Successfully switched to flutter channel 'stable'.
To ensure that you're on the latest build from this channel, run 'flutter upgrade'
+ flutter upgrade
Flutter is already up to date on channel master
Flutter 3.50.0 • channel master • https://github.com/flutter/flutter.git
Checking the logs from the build with the doctor call, it has the very same, though. Something non-deterministic, maybe?
It seems when explicitly disabled in the AndroidManifest.xml, that is honored even without my above work-around 🤔 (see linked issue – I found the other 2 candidates).
It seems when explicitly disabled in the AndroidManifest.xml, that is honored even without my above work-around 🤔 (see linked issue – I found the other 2 candidates).
Yeah that's expected. The addition to the manifest by the tool is just a flutter-default. An explicit value in the manifest will take priority, and an explicit value passed to the tool --enable-hcpp/--no-enable-hcpp will override the manifest (so explicit tool arg > explicit manifest value > default).
It seems you're still getting the master flags, as enable-riscv64 is showing as well, which is another master-only default on flag:
I'll try to figure out why you're still getting master's flags, seems like that is a bug (maybe separate from #196916, though I'm unsure, I mostly work on the android embedder and am less familiar with this part of the tool)
Until now, it have only been 3 apps with this issue here (which surprises me, as we have at least 3..5 Flutter apps in our build queue everyday). One of them came up with the Manifest override, which I for now suggested to the other two (together with watching this issue here). The one "accidental RB" managed with my "table dance" above, I've for now accepted as result (with a note for cleanup).
Looking forward to your findings then. While the Manifest override seems to work, once an RB has failed, it's too late for that. So having an override at our end, is to be preferred (not needing either, of course is best 🤪).
Thanks a lot for your help! If you need me to test-run something, I'll try to be on time with that (in my very own interest). I just cannot promise the time range 🙈 But I'll try my best.
So the flag for HCPP is gone in this case (and yes, we just had the [user-branch] issue with a different app, though without the HCPP part; hence the different Flutter version).
P2Important issues not at the top of the work listengineflutter/engine related. See also e: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform team
Activity
IzzySoft commentedon Nov 18, 2026
We see issues with Reproducible Builds in this context here:
--[no-]enable-hcpp<meta-data android:name="io.flutter.embedding.android.EnableHcpp" android:value="true"/>injected to theirAndroidManifext.xml(as if it was turned on automatically), the other side has no such property.--no-enable-hcpp, simply inserts<meta-data android:name="io.flutter.embedding.android.EnableHcpp" android:value="false"/>then, so builds again do not match (unless both sides explicitly specify, I guess)I don't think this is the intended behavior. We could not yet figure out what triggers this – but it should definitely be aligned. Until found and fixed: is there anything that can be done to keep that line out of the
AndroidManifest.xmlaltogether (unless--[no-]enable-hcppwas explicitly specified)?I'm asking this here as it seems as if, under some circumstances, HCPP is already enabled by default.
jmagman commentedon Nov 18, 2026
@IzzySoft Can you send us the
flutter doctor -voutput for each side?IzzySoft commentedon Nov 18, 2026
@jmagman I'll ask upstream to supply theirs (got one of the affected devs on chat; there were multiple such cases here already). To get the output here, we need to trick our builder (by injecting it to the build recipe). Will come back here then.
We've compared environments a bit. Upstream uses Github runners, which we can match pretty close. Which brought me to the point: didn't Github just update their runners, having
ubuntu:stablenow pointing to 26.04 (resolute) instead of 24.04 (noble)? I've got an updated build just running as I write this, let's see if that changes anything.This made no difference – I still get the same, byte-identical APK I did before (
sha256sumcompared). Next run, I left out the--target-platform=android-arm64I had specified, but upstream had not (that difference often "plays" with the native manifest, too, so it might be worth a try – made no difference either). So let's call the doctor…Meanwhile: upstream sent this link for their
doctoroutput. Mine is here:flutter doctor -v
[!] Flutter (Channel [user-branch], 3.50.0, on Ubuntu 26.04.1 LTS 6.12.113+deb13-amd64, locale C.UTF-8) [13ms] ! Flutter version 3.50.0 on channel [user-branch] at /home/runner/work/PeriodicTable/PeriodicTable/flutter Currently on an unknown channel. Run `flutter channel` to switch to an official channel. If that doesn't fix the issue, try deleting the 'bin/cache/flutter.version.json' file in your Flutter SDK directory and then reinstall Flutter by following instructions at https://flutter.dev/setup. ! The flutter binary is not on your path. Consider adding /home/runner/work/PeriodicTable/PeriodicTable/flutter/bin to your path. ! The dart binary is not on your path. Consider adding /home/runner/work/PeriodicTable/PeriodicTable/flutter/bin to your path. • Upstream repository https://github.com/flutter/flutter • Framework revision ab2912035e (9 days ago), 2026-11-09 08:50:21 -0800 • Engine revision 371f77202a • Dart version 3.14.0 • DevTools version 2.61.0 • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, enable-record-use, enable-swift-package-manager, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration, enable-riscv64, enable-hcpp • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[!] Android toolchain - develop for Android devices [9ms]
• Android SDK at /usr/local/lib/android/sdk
• Emulator version unknown
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/to/linux-android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
flutter config --android-sdkto update to that location.[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) [5ms]
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✗] Linux toolchain - develop for Linux desktop [8ms]
✗ clang++ is required for Linux development.
It is likely available from your distribution (e.g.: apt install clang), or can be downloaded from https://releases.llvm.org/
✗ CMake is required for Linux development.
It is likely available from your distribution (e.g.: apt install cmake), or can be downloaded from https://cmake.org/download/
✗ ninja is required for Linux development.
It is likely available from your distribution (e.g.: apt install ninja-build), or can be downloaded from https://github.com/ninja-build/ninja/releases
✗ pkg-config is required for Linux development.
It is likely available from your distribution (e.g.: apt install pkg-config), or can be downloaded from https://www.freedesktop.org/wiki/Software/pkg-config/
[!] Proxy Configuration [3ms]
• HTTP_PROXY is set
! NO_PROXY is not set
[✓] Connected device (1 available) [8ms]
• Linux (desktop) • linux • linux-x64 • Ubuntu 26.04.1 LTS 6.12.113+deb13-amd64
[✓] Network resources [3.7s]
• All expected network resources are available.
! Doctor found issues in 5 categories.
IzzySoft commentedon Nov 18, 2026
Comparing the two doctors, I've adjusted my recipe to
git checkoutwith the.gitsuffix, and also addexport PATH=${PATH}:$(pwd)/flutter/binas well asflutter channel stableimmediately following that. The doctor changes minimally, resulting APK remains the same:new doctor
+ flutter doctor -v [!] Flutter (Channel [user-branch], 3.50.0, on Ubuntu 26.04.1 LTS 6.12.113+deb13-amd64, locale C.UTF-8) [19ms] ! Flutter version 3.50.0 on channel [user-branch] at /home/runner/work/PeriodicTable/PeriodicTable/flutter Currently on an unknown channel. Run `flutter channel` to switch to an official channel. If that doesn't fix the issue, try deleting the 'bin/cache/flutter.version.json' file in your Flutter SDK directory and then reinstall Flutter by following instructions at https://flutter.dev/setup. • Upstream repository https://github.com/flutter/flutter.git • Framework revision ab2912035e (9 days ago), 2026-11-09 08:50:21 -0800 • Engine revision 371f77202a • Dart version 3.14.0 • DevTools version 2.61.0 • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, enable-record-use, enable-swift-package-manager, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration, enable-riscv64, enable-hcpp • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[!] Android toolchain - develop for Android devices [10ms]
• Android SDK at /usr/local/lib/android/sdk
• Emulator version unknown
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/to/linux-android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
flutter config --android-sdkto update to that location.[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) [5ms]
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✗] Linux toolchain - develop for Linux desktop [9ms]
✗ clang++ is required for Linux development.
It is likely available from your distribution (e.g.: apt install clang), or can be downloaded from https://releases.llvm.org/
✗ CMake is required for Linux development.
It is likely available from your distribution (e.g.: apt install cmake), or can be downloaded from https://cmake.org/download/
✗ ninja is required for Linux development.
It is likely available from your distribution (e.g.: apt install ninja-build), or can be downloaded from https://github.com/ninja-build/ninja/releases
✗ pkg-config is required for Linux development.
It is likely available from your distribution (e.g.: apt install pkg-config), or can be downloaded from https://www.freedesktop.org/wiki/Software/pkg-config/
[!] Proxy Configuration [3ms]
• HTTP_PROXY is set
! NO_PROXY is not set
[✓] Connected device (1 available) [8ms]
• Linux (desktop) • linux • linux-x64 • Ubuntu 26.04.1 LTS 6.12.113+deb13-amd64
[✓] Network resources [657ms]
• All expected network resources are available.
Funny it still insists on not being on the stable channel. Not sure if relevant: our build runs in ephemeral Podman containers. Upstream uses Github runners.
Fun fact: the doctor reports
enable-hcppas feature flag with our build. Why? That's not the case with the upstream doctor output. I suspect something with the cache at the Github runners?gmackall commentedon Nov 18, 2026
I think this is (quirk?/bug?) in how feature flags work. Your doctor shows you as being on
Which, for purposes of feature flag selection is (I believe) identical to master, despite it being the same commit as stable. I think this is because feature flags depend on the channel, which in turn depends on the actual git branch name (not just commit).
So basically, to get stable feature flags you need the channel to be reported as stable in flutter doctor (not just to be on stables commit)
Note that this means you'll get all of master's feature flags, it isn't specific to the hcpp-related one
IzzySoft commentedon Nov 18, 2026
Thanks! And yes, I wonder why it says the same even after running
flutter channel stable. Would I need to perform another step in addition then for that? For RB, I need to match the Flutter version exactly, so the "other step" must not change that.I've never had these issues in the past, and our builder contains almost 1k apps, with close to 100 being Flutter. So I'm also a bit confused this pops up only now (I run those builders for about 3 years now). I'm not a Flutter dev, so please forgive my ignorance 🙈
Despite of
flutter channel stablefollowed byflutter upgrade, the doctor insists I'm still onFlutter 3.50.0 • channel [user-branch]. The interesting part of the more detailed log below:So it says it successfully switched to the stable channel, and then says it's on user-branch. What do I miss there?
more detailed log
+ flutter channel stable Downloading Linux x64 Dart SDK from Flutter engine 371f77202a73e8dff57a8b3bff75bca55c090aee... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 254.9M 100 254.9M 0 0 7.45M 0 00:34 00:34 7.92M Building flutter tool... Got dependencies. [1/10] Material Fonts 110ms [2/10] Gradle Wrapper 11ms [3/10] Flutter SDK ├─ [1/5] sky_engine 30ms ├─ [2/5] flutter_gpu 16ms ├─ [3/5] flutter_patched_sdk 60ms ├─ [4/5] flutter_patched_sdk_product 93ms └─ [5/5] linux-x64 343ms [10/10] linux-x64/font-subset 69ms Switching to flutter channel 'stable'...Upgrading engine...
[1/6] Android SDK
├─ [1/6] android-arm-profile/linux-x64 431ms
├─ [2/6] android-arm-release/linux-x64 144ms
├─ [3/6] android-arm64-profile/linux-x64 127ms
├─ [4/6] android-arm64-release/linux-x64 117ms
├─ [5/6] android-x64-profile/linux-x64 159ms
└─ [6/6] android-x64-release/linux-x64 122ms
[2/6] Android Internal Build Artifacts
├─ [1/9] android-x64 2,819ms
├─ [2/9] android-arm 2,624ms
├─ [3/9] android-arm-profile 1,002ms
├─ [4/9] android-arm-release 1,113ms
├─ [5/9] android-arm64 4.3s
├─ [6/9] android-arm64-profile 1,211ms
├─ [7/9] android-arm64-release 1,011ms
├─ [8/9] android-x64-profile 3.4s
└─ [9/9] android-x64-release 1,009ms
[3/6] Web SDK 840ms
[4/6] Linux SDK
├─ [1/3] linux-x64-debug/linux-x64-flutter-gtk 417ms
├─ [2/3] linux-x64-profile/linux-x64-flutter-gtk 241ms
└─ [3/3] linux-x64-release/linux-x64-flutter-gtk 250ms
Successfully switched to flutter channel 'stable'.
To ensure that you're on the latest build from this channel, run 'flutter upgrade'
Flutter is already up to date on channel [user-branch]
Flutter 3.50.0 • channel [user-branch] • https://github.com/flutter/flutter.git
Framework • revision ab2912035e (9 days ago) • 2026-11-09 08:50:21 -0800
Engine • hash bf601093ad255aaf5c6d0fc5c4f9acfa60943b2a (revision 371f77202a) (9 days ago) • 2026-11-09 15:57:36.000Z
Tools • Dart 3.14.0 • DevTools 2.61.0
Analytics reporting disabled.
You may need to restart any open editors for them to read new settings.
Resolving dependencies...
Downloading packages...
cupertino_ui 1.1.6 (1.1.7 available)
material_color_utilities 0.13.0 (0.13.1 available)
test_api 0.7.14 (0.7.15 available)
url_launcher_android 6.3.33 (6.3.35 available)
vector_math 2.4.3 (2.4.4 available)
Got dependencies!
5 packages have newer versions incompatible with dependency constraints.
Try
flutter pub outdatedfor more information.[!] Flutter (Channel [user-branch], 3.50.0, on Ubuntu 26.04.1 LTS 6.12.113+deb13-amd64, locale C.UTF-8) [18ms]
! Flutter version 3.50.0 on channel [user-branch] at /home/runner/work/PeriodicTable/PeriodicTable/flutter
Currently on an unknown channel. Run
flutter channelto switch to an official channel.If that doesn't fix the issue, try deleting the 'bin/cache/flutter.version.json' file in your Flutter SDK directory and then reinstall Flutter by following instructions at https://flutter.dev/setup.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ab2912035e (9 days ago), 2026-11-09 08:50:21 -0800
• Engine revision 371f77202a
• Dart version 3.14.0
• DevTools version 2.61.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, enable-record-use, enable-swift-package-manager, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration, enable-riscv64, enable-hcpp
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[!] Android toolchain - develop for Android devices [9ms]
• Android SDK at /usr/local/lib/android/sdk
• Emulator version unknown
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/to/linux-android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
flutter config --android-sdkto update to that location.[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) [5ms]
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✗] Linux toolchain - develop for Linux desktop [8ms]
✗ clang++ is required for Linux development.
It is likely available from your distribution (e.g.: apt install clang), or can be downloaded from https://releases.llvm.org/
✗ CMake is required for Linux development.
It is likely available from your distribution (e.g.: apt install cmake), or can be downloaded from https://cmake.org/download/
✗ ninja is required for Linux development.
It is likely available from your distribution (e.g.: apt install ninja-build), or can be downloaded from https://github.com/ninja-build/ninja/releases
✗ pkg-config is required for Linux development.
It is likely available from your distribution (e.g.: apt install pkg-config), or can be downloaded from https://www.freedesktop.org/wiki/Software/pkg-config/
[!] Proxy Configuration [3ms]
• HTTP_PROXY is set
! NO_PROXY is not set
[✓] Connected device (1 available) [8ms]
• Linux (desktop) • linux • linux-x64 • Ubuntu 26.04.1 LTS 6.12.113+deb13-amd64
[✓] Network resources [679ms]
• All expected network resources are available.
! Doctor found issues in 5 categories.
gmackall commentedon Nov 18, 2026
Hmm perhaps it's the additional tool caching I mentioned in #196916
can you run
rm -f bin/cache/flutter.version.jsonfrom the root of your flutter checkout?IzzySoft commentedon Nov 19, 2026
Didn't help:
Now it claims to be on an "unknown channel" – telling me I should use
flutter channelto switch to an official channel – what I just did before calling the doctor.The description in the issue you've linked brings me to the idea if the following might be a work-around until this is aligned:
i.e. instead of cloning the tag, switching to it after having cloned
HEAD– which should avoid the "detached HEAD" state.That worked to get to the stable channel! But…
the
enable-hcppfeature flag is still set?full doctor
+ flutter doctor -v [✓] Flutter (Channel stable, 3.50.0, on Ubuntu 26.04.1 LTS 6.12.113+deb13-amd64, locale C.UTF-8) [43ms] • Flutter version 3.50.0 on channel stable at /home/runner/work/PeriodicTable/PeriodicTable/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision ab2912035e (9 days ago), 2026-11-09 08:50:21 -0800 • Engine revision 371f77202a • Dart version 3.14.0 • DevTools version 2.61.0 • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, enable-record-use, enable-swift-package-manager, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration, enable-riscv64, enable-hcpp
[!] Android toolchain - develop for Android devices [9ms]
• Android SDK at /usr/local/lib/android/sdk
• Emulator version unknown
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/to/linux-android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
flutter config --android-sdkto update to that location.[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) [5ms]
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✗] Linux toolchain - develop for Linux desktop [8ms]
✗ clang++ is required for Linux development.
It is likely available from your distribution (e.g.: apt install clang), or can be downloaded from https://releases.llvm.org/
✗ CMake is required for Linux development.
It is likely available from your distribution (e.g.: apt install cmake), or can be downloaded from https://cmake.org/download/
✗ ninja is required for Linux development.
It is likely available from your distribution (e.g.: apt install ninja-build), or can be downloaded from https://github.com/ninja-build/ninja/releases
✗ pkg-config is required for Linux development.
It is likely available from your distribution (e.g.: apt install pkg-config), or can be downloaded from https://www.freedesktop.org/wiki/Software/pkg-config/
[!] Proxy Configuration [3ms]
• HTTP_PROXY is set
! NO_PROXY is not set
[✓] Connected device (1 available) [8ms]
• Linux (desktop) • linux • linux-x64 • Ubuntu 26.04.1 LTS 6.12.113+deb13-amd64
[✓] Network resources [688ms]
• All expected network resources are available.
! Doctor found issues in 4 categories.
Eh, what is that? Despite the flag being still enabled:
Now I'm confused: did the doctor lie? But meh, at least we seem to have a work-around there! Will make another "clean run" now without calling the doctor (for clean RB logs) – and report back after that has completed. If that succeeds again, we can carefully name this a work around. I see if I can find one of the other "failed candidates" then to repeat the dance; the more confirmations we have for this, the more confident we can be naming this a "working approach".
Apologies for the delays between my replies, but it always takes at least 6 minutes until the Flutter clone is complete (i.e. close to 10 min until the build reaches the point we need to check). Luckily (and thanks to Podman Desktop easily) I can watch the build process remotely…
IzzySoft commentedon Nov 19, 2026
Bad news: having removed the doctor call, it's no longer RB. That seems to have been just a "lucky shot" 😢
Checking the logs from the build with the doctor call, it has the very same, though. Something non-deterministic, maybe?
IzzySoft commentedon Nov 19, 2026
It seems when explicitly disabled in the
AndroidManifest.xml, that is honored even without my above work-around 🤔 (see linked issue – I found the other 2 candidates).gmackall commentedon Nov 19, 2026
Yeah that's expected. The addition to the manifest by the tool is just a flutter-default. An explicit value in the manifest will take priority, and an explicit value passed to the tool
--enable-hcpp/--no-enable-hcppwill override the manifest (so explicit tool arg > explicit manifest value > default).It seems you're still getting the master flags, as
enable-riscv64is showing as well, which is another master-only default on flag:flutter/packages/flutter_tools/lib/src/features.dart
Lines 310 to 312 in a6be028
I'll try to figure out why you're still getting master's flags, seems like that is a bug (maybe separate from #196916, though I'm unsure, I mostly work on the android embedder and am less familiar with this part of the tool)
IzzySoft commentedon Nov 19, 2026
Until now, it have only been 3 apps with this issue here (which surprises me, as we have at least 3..5 Flutter apps in our build queue everyday). One of them came up with the Manifest override, which I for now suggested to the other two (together with watching this issue here). The one "accidental RB" managed with my "table dance" above, I've for now accepted as result (with a note for cleanup).
Looking forward to your findings then. While the Manifest override seems to work, once an RB has failed, it's too late for that. So having an override at our end, is to be preferred (not needing either, of course is best 🤪).
Thanks a lot for your help! If you need me to test-run something, I'll try to be on time with that (in my very own interest). I just cannot promise the time range 🙈 But I'll try my best.
IzzySoft commentedon Nov 20, 2026
While this is still WIP, this seems to be working:
Doctor then says:
So the flag for HCPP is gone in this case (and yes, we just had the
[user-branch]issue with a different app, though without the HCPP part; hence the different Flutter version).jmagman commentedon Nov 20, 2026
Thanks for all the investigation, @IzzySoft!
[flutter_tools] Delete flutter.version.json when switching channels (f…
[flutter_tools] Use refreshed FlutterVersion for flutter doctor featu…