How to Build APK in Linux or Windows
Description
I Try to Build APK file in WSL (Windows Subsystem Linux) Install Dependencies before build APK
- sudo snap install flutter
- sudo apt install android-sdk sdkmanager
- sudo sdkmanager --licenses
- sudo -E sdkmanager --install "ndk;23.1.7779620"
Then Run APK
flet build apk
Describe the results you received:
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
give your requirements.txt. Also give the output of flet build apk -vv
@MominIqbal-1234 it is mentioned in the docs not to install flutter with snap. This could be the cause of your issue.
@ndonkoHenri Please Explain how i install flutter
https://docs.flutter.dev/get-started/install