Skip to content

Can't build Flutter Applications on old x86_64 CPUs with 3.16.0 and greater #140138

Description

@6260coder

Is there an existing issue for this?

Steps to reproduce

  1. Develop in Flutter 3.10 with no problems.
  2. Use the flutter upgrade command to upgrade to Flutter 3.16.3
  3. Create and build a new sample project.

Actual results

When I create a new project, I get the following message:

[test_project] flutter create --template app --overwrite .
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
Creating project ....
Resolving dependencies...
Got dependencies.
Wrote 129 files.

All done!
You can find general documentation for Flutter at: https://docs.flutter.dev/
Detailed API documentation is available at: https://api.flutter.dev/
If you prefer video documentation, consider: https://www.youtube.com/c/flutterdev

In order to run your application, type:

  $ cd .
  $ flutter run

Your application code is in .\lib\main.dart.

exit code 3221225501

When I try to build the project for windows, I get the following:

Launching lib\main.dart on Windows in debug mode...
i:\soft\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(248,5): error MSB8066: Custom build for 'I:\work\flutter-projs\test_project\build\windows\x64\CMakeFiles\7e7530df3ca3759e8b25d8281e0718c2\flutter_windows.dll.rule;I:\work\flutter-projs\test_project\build\windows\x64\CMakeFiles\2fbfa67e692ef0c565297c7533a2d0cf\flutter_assemble.rule;I:\work\flutter-projs\test_project\windows\flutter\CMakeLists.txt' exited with code 1. [I:\work\flutter-projs\test_project\build\windows\x64\flutter\flutter_assemble.vcxproj]
Exception: Build process failed.

Exited (-1073741795).

I think the problem first manifests itself when it tries to download the sky_engine package after "flutter upgrade". This is the output:

Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
Downloading package sky_engine...                               exit code 3221225501

I tried removing the windows folder in the project as well as commands such as flutter clean, dart pub cache repair, dart pub cache clean, but it still doesn't work. What is wrong and what can I do to get rid of the exit code 3221225501 problem and make my projects build successfully? Thank you very much!

Logs

Logs
<!-- Paste your logs here -->

Flutter Doctor output

Doctor output
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
[✓] Flutter (Channel stable, 3.16.4, on Microsoft Windows [Version 10.0.19045.3803], locale en-US)
    • Flutter version 3.16.4 on channel stable at I:\soft\flutter_windows_3.10.1-stable\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2e9cb0aa71 (2 days ago), 2023-12-11 14:35:13 -0700
    • Engine revision 54a7145303
    • Dart version 3.2.3
    • DevTools version 2.28.4
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at I:\soft\android-sdk
    • Platform android-33, build-tools 33.0.2
    • Java binary at: I:\soft\android-studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop Windows apps (Visual Studio Build Tools 2022 17.6.1)
    • Visual Studio at i:\soft\Microsoft Visual Studio\2022\BuildTools
    • Visual Studio Build Tools 2022 version 17.6.33717.318
    • Windows 10 SDK version 10.0.22000.0

[✓] Android Studio (version 2022.2)
    • Android Studio at I:\soft\android-studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19045.3803]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 120.0.6099.71
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 120.0.2210.61

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: buildBuilding flutter applications with the tooldependency: dartDart team may need to help usr: fixedIssue is closed as already fixed in a newer versiont: gradle"flutter build" and "flutter run" on Androidteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions