Replies: 2 comments 4 replies
-
You are using some packages which can't be built for mobile at the moment. Sub to #3839 Also, please avoid having semicolons after each line in the requirements file as they are unnecessary and might lead to issues. |
Beta Was this translation helpful? Give feedback.
4 replies
-
Fyi the main issue causing your error are the empty lines you have in your requirements file. For now it is not possible to build with empty or commented lines in this file. It's a bug and will be fixed in upcoming releases. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
i tried to build apk, it shows the error:
(venv) PS C:\Users\hp\OneDrive\Desktop\valetparking> flet build apk -v [20:52:13] Flutter bootstrap directory: C:\Users\hp\AppData\Local\Temp\flet_flutter_build_HztvHBPlRx No additional Flutter dependencies! [20:52:16] Created Flutter bootstrap project from gh:flet-dev/flet-build-template with ref 0.24.1 ✅ Customized app icons and splash images ✅ Run subprocess: ['C:\\src\\flutter\\bin\\dart.BAT', 'run', 'flutter_launcher_icons'] (● ) Generating app icons (2.2s) Downloading packages... Got dependencies in
C:\Users\hp\AppData\Local\Temp\flet_flutter_build_HztvHBPlRx`.( ● ) Generating app icons (1.6s)
Built flutter_launcher_icons:flutter_launcher_icons.
( ●) Generating app icons ⏳... ════════════════════════════════════════════
FLUTTER LAUNCHER ICONS (v0.13.1)
════════════════════════════════════════════
( ● ) Generating app icons ⏳... • Creating default icons Android
( ● ) Generating app icons ⏳... • Overwriting the default Android launcher icon with a new icon
( ● ) Generating app icons ⏳... • Overwriting default iOS launcher icon with new icon
(● ) Generating app icons ⏳... Creating Icons for Web...
( ● ) Generating app icons ⏳... Creating Icons for Windows...
( ● ) Generating app icons ⏳... Creating Icons for MacOS...
( ● ) Generating app icons ⏳...
✓ Successfully generated launcher icons
[20:52:24] Generated app icons ✅
Run subprocess: ['C:\src\flutter\bin\dart.BAT', 'run', 'flutter_native_splash:create']
( ●) Generating splash screens (1.7s)
Built flutter_native_splash:create.
( ● ) Generating splash screens ⏳... [Android] Creating default splash images
( ● ) Generating splash screens ⏳... [Android] Creating dark mode splash images
( ● ) Generating splash screens ⏳... [Android] Creating default android12splash images
(● ) Generating splash screens ⏳... [Android] Creating dark mode android12splash images
( ● ) Generating splash screens ⏳... [Android] Updating launch background(s) with splash image path...
[Android] - android/app/src/main/res/drawable/launch_background.xml
( ●) Generating splash screens ⏳... [Android] - android/app/src/main/res/drawable-night/launch_background.xml
[Android] - android/app/src/main/res/drawable-v21/launch_background.xml
[Android] - android/app/src/main/res/drawable-night-v21/launch_background.xml
[Android] Updating styles...
[Android] - android/app/src/main/res/values-v31/styles.xml
[Android] No android/app/src/main/res/values-v31/styles.xml found in your Android project
[Android] Creating android/app/src/main/res/values-v31/styles.xml and adding it to your Android project
[Android] - android/app/src/main/res/values-night-v31/styles.xml
[Android] No android/app/src/main/res/values-night-v31/styles.xml found in your Android project
[Android] Creating android/app/src/main/res/values-night-v31/styles.xml and adding it to your Android project
[Android] - android/app/src/main/res/values/styles.xml
[Android] - android/app/src/main/res/values-night/styles.xml
[iOS] Creating images
( ● ) Generating splash screens ⏳... [iOS] Creating dark mode images
( ● ) Generating splash screens ⏳... [iOS] Updating ios/Runner/Info.plist for status bar hidden/visible
( ● ) Generating splash screens ⏳... [Web] Creating images
(● ) Generating splash screens ⏳... [Web] Creating images
( ● ) Generating splash screens ⏳... [Web] Creating background images
[Web] Creating CSS
( ● ) Generating splash screens ⏳... [Web] Updating index.html
✅ Native splash complete.
Now go finish building something awesome! 💪 You rock! 🤘🤩
Like the package? Please give it a 👍 here: https://pub.dev/packages/flutter_native_splash
[20:52:29] Generated splash screens ✅
Run subprocess: ['C:\src\flutter\bin\dart.BAT', 'run', 'serious_python:main', 'package',
'C:\Users\hp\OneDrive\Desktop\valetparking', '--mobile', '--platform', 'mobile', '--dep-mappings', 'flet=flet-embed', '--req-deps',
'flet-embed', '--exclude', 'build']
( ●) Packaging Python app ⏳...
Built serious_python:main.
( ● ) Packaging Python app ⏳... Running package command
Creating asset directory: C:\Users\hp\AppData\Local\Temp\flet_flutter_build_HztvHBPlRx\app
Copying Python app from C:\Users\hp\OneDrive\Desktop\valetparking to C:\Users\hp\AppData\Local\Temp\serious_python_temp90db1162
(● ) Packaging Python app ⏳... Configured mobile platform with sitecustomize.py at C:\Users\hp\AppData\Local\Temp\serious_python_sitecustomize667cdcfb\sitecustomize.py
Installing dependencies [beautifulsoup4;, flet;, pandas;, requests;, , flet-embed] with pip command to C:\Users\hp\AppData\Local\Temp\serious_python_temp90db1162_pypackages_
( ● ) Packaging Python app ⏳... Extracting Python distributive from C:\Users\hp\AppData\Local\Temp\cpython-3.11.6+20231002-x86_64-pc-windows-msvc-shared-install_only.tar.gz to C:\Users\hp\AppData\Local\Temp\hostpython3.11_411933af
( ● ) Packaging Python app ⏳... C:\Users\hp\AppData\Local\Temp\hostpython3.11_411933af\python\Lib\site-packages_distutils_hack_init_.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
ERROR: Invalid requirement: ''
[notice] A new release of pip is available: 23.2.1 -> 24.2
[notice] To update, run: C:\Users\hp\AppData\Local\Temp\hostpython3.11_411933af\python\python.exe -m pip install --upgrade pip
[20:53:13] Deleting Flutter bootstrap directory C:\Users\hp\AppData\Local\Temp\flet_flutter_build_HztvHBPlRx
Error building Flet app - see the log of failed command above.
Run subprocess: ['C:\src\flutter\bin\flutter.BAT', 'doctor']
[20:53:17] Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.24.3, on Microsoft Windows [Version 10.0.22631.4169], locale en-IN)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc4)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.11.3)
[√] Android Studio (version 2024.1)
[√] VS Code (version 1.93.1)
[√] Connected device (3 available)
[√] Network resources
i got stuck in this error since last 3 weeks.
Flet version: 0.24.1
OS: windows 11
requirements.txt
`
beautifulsoup4;
flet;
pandas;
requests;
`
Code sample
No response
Error message
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions