Skip to content

Turn Hybrid Composition++ (HCPP) on by default #189939

Open

Description

@jmagman

Turn on HCPP by default. Keep the opt-out flags --no-enable-hcpp and

<meta-data
    android:name="io.flutter.embedding.android.EnableHcpp"
    android:value="false" />

Note: we're not ready to do this as of writing this issue, we're waiting for more signal of stability. Filing the issue for tracking.

Activity

  1. added
    platform-android
    on Jul 23, 2026
  2. added
    tool
    engine
    team-android
    on Jul 23, 2026
  3. added
    triaged-android
    P2
    on Jul 28, 2026
  4. IzzySoft commented on Nov 18, 2026

    @IzzySoft

    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.

  5. jmagman commented on Nov 18, 2026

    @jmagman
    MemberAuthor
    • both sides use the same Flutter version

    @IzzySoft Can you send us the flutter doctor -v output for each side?

  6. IzzySoft commented on Nov 18, 2026

    @IzzySoft

    @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 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-sdk to update to that location.

    • 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.

    [✗] 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.

  7. IzzySoft commented on Nov 18, 2026

    @IzzySoft

    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 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-sdk to update to that location.

    • 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.

    [✗] 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-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?

  8. gmackall commented on Nov 18, 2026

    @gmackall
    Member

    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

  9. IzzySoft commented on Nov 18, 2026

    @IzzySoft

    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'...
    

    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 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
    • flutter config --no-analytics
      Analytics reporting disabled.

    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 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-sdk to update to that location.

    • 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.

    [✗] 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.

  10. gmackall commented on Nov 18, 2026

    @gmackall
    Member

    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?

  11. IzzySoft commented on Nov 19, 2026

    @IzzySoft

    Didn't help:

    + 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:

    git clone https://github.com/flutter/flutter.git
    pushd flutter
    git reset --hard $FLUTTER_VERSION
    popd
    export PATH=${PATH}:$(pwd)/flutter/bin
    flutter channel stable
    ...

    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…

    + 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
    

    the enable-hcpp feature 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-sdk to update to that location.

    • 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.

    [✗] 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:

    --- END BUILD LOG ---
    Keeping '3d79610f6683ebe9a0f68c6a8c8baf998ca4361b5a0c11def0d320d5508a3fd0-com.sidhant.periodictable-V1.0.4-upstream.apk'...
    Keeping 'dbc16729138fc1ba304925ce7866bbfa85af72e062096cd803ce47927409ca9b-com.sidhant.periodictable-V1.0.4-unsigned.apk'...
    Reproducible: True
    

    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…

  12. IzzySoft commented on Nov 19, 2026

    @IzzySoft

    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?

  13. IzzySoft commented on Nov 19, 2026

    @IzzySoft

    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).

  14. gmackall commented on Nov 19, 2026

    @gmackall
    Member

    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:

    master: FeatureChannelSetting(available: true, enabledByDefault: true),
    beta: FeatureChannelSetting(available: true),
    stable: FeatureChannelSetting(available: true),

    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)

  15. IzzySoft commented on Nov 19, 2026

    @IzzySoft

    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.

  16. IzzySoft commented on Nov 20, 2026

    @IzzySoft

    While this is still WIP, this seems to be working:

    git clone https://github.com/flutter/flutter.git
    git -C flutter checkout -B stable -f $FLUTTER_VERSION
    export PATH=${PATH}:$(pwd)/flutter/bin
    flutter doctor -v

    Doctor then says:

    [✓] Flutter (Channel stable, 3.47.8, on Ubuntu 26.04.1 LTS 6.8.0-138-generic, locale C.UTF-8) [49ms]
        • Flutter version 3.47.8 on channel stable at /home/runner/work/NetManager/NetManager/flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 737ba8f885 (4 weeks ago), 2026-10-22 21:37:31 -0700
        • Engine revision cf636b1dfb
        • Dart version 3.13.7
        • DevTools version 2.60.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
    

    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).

  17. jmagman commented on Nov 20, 2026

    @jmagman
    MemberAuthor

    Thanks for all the investigation, @IzzySoft!

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

    P2engineplatform-androidteam-androidtooltriaged-android

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions