Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

bug: `flet build` fails on rebuild

Aperta
#7,010 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@ndonkoHenri ci sta già lavorando.

Dal 27/10/2026.

  • #7012 di @ndonkoHenri — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
flutter, python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
17.4k
Fork
737
Merge medio
1g 8h
PR unite (30g)
46

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di flet-dev/flet

Tutte le issue di flet-dev/flet

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.