Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

bug: `flet build` fails on rebuild

Đang mở
#7,010 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@ndonkoHenri đang làm issue này rồi.

Từ ngày 27/10/2026.

  • #7012 của @ndonkoHenri — đã merge

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
flutter, python
Lĩnh vực
build-system, mobile

Hướng nghiên cứu

Start by tracing how flet build prepares and cleans build/flutter-packages and how the generated Flutter project records extension package paths; the issue names no source files or tests. Reproduce by building an Android project with the listed extensions twice without changing dependencies, then inspect the second build's Flutter dependency resolution. Done when the second build succeeds with the extensions installed.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug
Duplicate Check
Describe the bug

After a successful flet build apk, running flet build again (without changing
dependencies) can fail during "Running build hooks" because the generated Flutter
project still depends on an extension package from build\flutter-packages\, but that
folder no longer exists at that point.

Error:

Running build hooks...Because *** depends on flet_onesignal from path which
doesn't exist (could not find package flet_onesignal at
"D:\***\***\build\flutter-packages\flet_onesignal"), version solving failed.

The folder build\flutter-packages does not exist on disk after the failure.
The extension's Python package (flet-onesignal) is installed and was bundled
successfully in the earlier build.

Code sample
Code
Running build hooks...Because *** depends on flet_onesignal from path which
doesn't exist (could not find package flet_onesignal at
"D:\***\***\build\flutter-packages\flet_onesignal"), version solving failed.
To reproduce
  1. Project using Flet 1.0.5 with the extensions flet-map, flet-geolocator and
    flet-onesignal, built for Android.
  2. Run flet build apk — it succeeds.
  3. Without changing pyproject.toml, run flet build for Android again.
  4. The build stops at the Flutter dependency resolution step with the error above.
  5. Deleting the whole build folder before the next run avoids the error [confirm].
Expected behavior

No response

Screenshots / Videos
Captures

[Upload media here]

Operating System

Windows

Operating system details

11

Flet version

1.0.5

Regression

No, it isn't

Suggestions

No response

Logs
Logs
[Paste your logs here]
Additional details

No response

Ngôn ngữ chính
Python
Star
17.4k
Fork
737
Merge trung bình
1 ngày 13 giờ
Pull request đã merge (30 ngày)
62

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của flet-dev/flet

Tất cả issue của flet-dev/flet

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.