Skip to content

bug: build android app with pycryptodome stuck #5731

@Linuxpizi

Description

@Linuxpizi

Duplicate Check

Describe the bug

env

flet --version
0.28.3  

os
windows10

related repo

soft-activation-code

related deps

[project]
name = "soft-activation-code"
version = "0.1.0"
description = ""
readme = "README.md"
requires-python = ">=3.12"
authors = [
    { name = "Flet developer", email = "tangsong0202@gmail.com" }
]
dependencies = [
  "flet==0.28.3",
  "pycryptodome (==3.21.0)",
]

[tool.flet]
# org name in reverse domain name notation, e.g. "com.mycompany".
# Combined with project.name to build bundle ID for iOS and Android apps
org = "com.mycompany"

# project display name that is used as an app title on Android and iOS home screens,
# shown in window titles and about app dialogs on desktop.
product = "soft-activation-code"

# company name to display in about app dialogs
company = "Flet"

# copyright text to display in about app dialogs
copyright = "Copyright (C) 2025 by Flet"

[tool.flet.app]
path = "src"

[tool.uv]
dev-dependencies = [
    "flet[all]==0.28.3",
]

[tool.poetry]
package-mode = false

[tool.poetry.group.dev.dependencies]
flet = {extras = ["all"], version = "0.28.3"}

[tool.flet.flutter.pubspec.dependency_overrides]
webview_flutter_android = "4.10.1"

related log

[03:18:00] Created Flutter bootstrap project from gh:flet-dev/flet-build-template with ref "0.28.3" ✅                                                          
           Run subprocess: ['C:\\Users\\Administrator\\flutter\\3.29.2\\bin\\dart.bat', 'run', '--suppress-analytics', 'serious_python:main', 'package',        
           'E:\\job\\soft-activation-code\\src', '--platform', 'Android', '-r', 'flet==0.28.3', '-r', 'pycryptodome (==3.21.0)', '--exclude', 'build',
           '--cleanup-packages', '--verbose']
[03:18:21] Running package command
           Extra PyPi indexes: [https://pypi.flet.dev]
           Created temp directory: C:\Users\Administrator\AppData\Local\Temp\serious_python_tempa508ceba
           Copying Python app from E:\job\soft-activation-code\src to a temp directory
           VERBOSE: Configured Android/arm64-v8a platform with sitecustomize.py at
           C:\Users\Administrator\AppData\Local\Temp\serious_python_sitecustomizeb12d9944\sitecustomize.py
           Installing [flet==0.28.3, pycryptodome (==3.21.0)] with pip command to E:\job\soft-activation-code\build\site-packages\arm64-v8a
           VERBOSE: E:\job\soft-activation-code\build\flutter\build\build_python_3.12.9\python\python.exe -m pip install --upgrade --disable-pip-version-check  
           --only-binary :all: --extra-index-url https://pypi.flet.dev --target E:\job\soft-activation-code\build\site-packages\arm64-v8a flet==0.28.3
           pycryptodome (==3.21.0)
[03:18:26] VERBOSE: Looking in indexes: https://pypi.org/simple, https://pypi.flet.dev
[03:18:28] VERBOSE: Collecting flet==0.28.3
           VERBOSE: Using cached flet-0.28.3-py3-none-any.whl.metadata (3.6 kB)
[03:18:29] VERBOSE: Collecting pycryptodome==3.21.0
( ●    ) Packaging Python app...

Code sample

can read this public repo

To reproduce

can read this public repo

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

Windows10

Flet version

0.28.3

Regression

No, it isn't

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions