Skip to content

bug: flet_audio dependency conflict with flet>=0.81.0 prevents APK build (requires path vs hosted resolution) #6210

@datumbox

Description

@datumbox

Duplicate Check

Describe the bug

Error message:

( ●    ) Customizing app icons...
           Customized app icons ✅                                              
( ●    ) Customizing app icons...
           Run subprocess: ['/home/runner/flutter/3.41.2/bin/dart', 'run',      
           '--suppress-analytics', 'flutter_launcher_icons']                    
( ●    ) Generating app icons...
           Because every version of flet_audio from path depends on flet from   
           path and my_project depends on flet from hosted, flet_audio from path is 
           forbidden.                                                           
(  ●   ) Generating app icons...
           So, because my_project depends on flet_audio from path, version solving  
           failed.                                                              
(  ●   ) Generating app icons...
                                                                                
(  ●   ) Generating app icons...
╭──────────────────────────────────────────────────────────────────────────────╮
│ Error building Flet app - see the log of failed command above.               │
╰──────────────────────────────────────────────────────────────────────────────╯
( ●    ) Running Flutter doctor...
           Run subprocess: ['/home/runner/flutter/3.41.2/bin/flutter', 'doctor',
           '--no-version-check', '--suppress-analytics']                        
╭──────────────────────────────────────────────────────────────────────────────╮
│ Error building Flet app - see the log of failed command above.               │
╰──────────────────────────────────────────────────────────────────────────────╯
( ●    ) Running Flutter doctor...

╭──────────────────────────────────────────────────────────────────────────────╮
│ Error building Flet app - see the log of failed command above.               │
╰──────────────────────────────────────────────────────────────────────────────╯
(    ● ) Running Flutter doctor...
[23:04:00] Doctor summary (to see all details, run flutter doctor -v):          
           [✓] Flutter (Channel stable, 3.41.2, on Ubuntu 24.04.3 LTS           
           6.11.0-1018-azure, locale C.UTF-8)                                   
           [!] Android toolchain - develop for Android devices (Android SDK     
           version 36.1.0)                                                      
               ! Some Android licenses not accepted. To resolve this, run:      
           flutter doctor --android-licenses                                    
           [✓] Chrome - develop for the web                                     
           [✗] Linux toolchain - develop for Linux desktop                      
               ✗ GTK 3.0 development libraries are required for Linux           
           development.                                                         
                 They are likely available from your distribution (e.g.: apt    
           install libgtk-3-dev)                                                
               ! Unable to access driver information using 'eglinfo'.           
                 It is likely available from your distribution (e.g.: apt       
           install mesa-utils)                                                  
           [✓] Connected device (2 available)                                   
           [✓] Network resources                                                
                                                                                
           ! Doctor found issues in 2 categories.                               
                                                                                
╭──────────────────────────────────────────────────────────────────────────────╮
│ Error building Flet app - see the log of failed command above.               │
╰──────────────────────────────────────────────────────────────────────────────╯

Code sample

Sample Toml
[project]
name = "my_project"
version = "0.1.0"
description = ""
readme = "README.md"
requires-python = ">=3.13"
authors = [
    { name = "Anonymous", email = "anon@example.com" }
]
dependencies = [
    "flet>=0.81.0",
    "flet-audio>=0.81.0"
]

[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"

[tool.flet]
org = "com.example"
product = "My Product"
company = "Example Corp"
copyright = ""

[tool.flet.flutter.dependencies]
flet_audio = "0.81.0"

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

To reproduce

Use the above toml and build an APK on Github Actions via flet build apk

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Linux

Operating system details

ubuntu-latest, Github Actions

Flet version

0.81.0

Regression

Yes, it used to work in a previous Flet version (please specify the version in additional details)

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions