flet icon indicating copy to clipboard operation
flet copied to clipboard

flet build apk not work

Open MominIqbal-1234 opened this issue 4 months ago • 3 comments

Duplicate Check

  • [X] I have searched the opened issues and there are no duplicates

Describe the bug

[03:23:09] flutter command is not available in PATH. Install Flutter SDK.
Traceback (most recent call last): File "/home/momin/.local/bin/flet", line 8, in sys.exit(main()) ^^^^^^ File "/home/momin/.local/lib/python3.12/site-packages/flet_cli/cli.py", line 88, in main args.handler(args) File "/home/momin/.local/lib/python3.12/site-packages/flet_cli/commands/build.py", line 489, in handle self.flutter_exe = self.find_flutter_batch("flutter") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/momin/.local/lib/python3.12/site-packages/flet_cli/commands/build.py", line 1403, in find_flutter_batch self.cleanup( File "/home/momin/.local/lib/python3.12/site-packages/flet_cli/commands/build.py", line 1484, in cleanup self.run_flutter_doctor(style=error_style) File "/home/momin/.local/lib/python3.12/site-packages/flet_cli/commands/build.py", line 1489, in run_flutter_doctor self.status.update( ^^^^^^^^^^^ AttributeError: 'Command' object has no attribute 'status'

ENV

already add flutter in env /home/momin/.local/bin:~/development/flutter/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin

Code sample

Code
import flet as ft


def main(page: ft.Page):
    page.add(ft.SafeArea(ft.Text("Hello, Flet!")))


ft.app(main)

To reproduce


Expected behavior

return the apk for android

Screenshots / Videos

Captures

image

Operating System

Linux

Operating system details

Ubuntu 24.04.1 LTS

Flet version

0.25.0.dev3570

Regression

No, it isn't

Suggestions

i dont no

Logs

Logs
momin@momin:~/code$ flet build apk
[03:23:09] `flutter` command is not available in PATH. Install Flutter SDK.                                                                        
Traceback (most recent call last):
  File "/home/momin/.local/bin/flet", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/momin/.local/lib/python3.12/site-packages/flet_cli/cli.py", line 88, in main
    args.handler(args)
  File "/home/momin/.local/lib/python3.12/site-packages/flet_cli/commands/build.py", line 489, in handle
    self.flutter_exe = self.find_flutter_batch("flutter")
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/momin/.local/lib/python3.12/site-packages/flet_cli/commands/build.py", line 1403, in find_flutter_batch
    self.cleanup(
  File "/home/momin/.local/lib/python3.12/site-packages/flet_cli/commands/build.py", line 1484, in cleanup
    self.run_flutter_doctor(style=error_style)
  File "/home/momin/.local/lib/python3.12/site-packages/flet_cli/commands/build.py", line 1489, in run_flutter_doctor
    self.status.update(
    ^^^^^^^^^^^
AttributeError: 'Command' object has no attribute 'status'

Additional details

No response

MominIqbal-1234 avatar Oct 23 '24 22:10 MominIqbal-1234