flet icon indicating copy to clipboard operation
flet copied to clipboard

How to Build APK in Linux or Windows

Open MominIqbal-1234 opened this issue 2 years ago • 4 comments

Description

I Try to Build APK file in WSL (Windows Subsystem Linux) Install Dependencies before build APK

  1. sudo snap install flutter
  2. sudo apt install android-sdk sdkmanager
  3. sudo sdkmanager --licenses
  4. sudo -E sdkmanager --install "ndk;23.1.7779620"

Then Run APK

flet build apk

Describe the results you received:

image

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):

Flet version (pip show flet):

Name: flet
Version: 0.19.0
Summary: Flet for Python - easily build interactive multi-platform apps in Python
Home-page:
Author: Appveyor Systems Inc.
Author-email: [email protected]
License: Apache-2.0
Location: /home/momin/.local/lib/python3.10/site-packages
Requires: cookiecutter, flet-runtime, packaging, qrcode, watchdog, websocket-client, websockets
Required-by:

Operating system: Windows 10

Additional environment details: i am use ubuntu in WSL

MominIqbal-1234 avatar Jan 26 '24 13:01 MominIqbal-1234

give your requirements.txt. Also give the output of flet build apk -vv

taaaf11 avatar Jan 28 '24 02:01 taaaf11

@MominIqbal-1234 it is mentioned in the docs not to install flutter with snap. This could be the cause of your issue.

ndonkoHenri avatar Jan 29 '24 12:01 ndonkoHenri

@ndonkoHenri Please Explain how i install flutter

MominIqbal-1234 avatar Apr 21 '24 11:04 MominIqbal-1234

https://docs.flutter.dev/get-started/install

ndonkoHenri avatar Apr 21 '24 16:04 ndonkoHenri