Replies: 9 comments 17 replies
-
What OS are you running it on? |
Beta Was this translation helpful? Give feedback.
-
In version 0.26.0 using this command I was able to generate the apk with the video and audio components; in version 0.27.0. usage: flet [-h] [--version] {create,run,pack,publish,build,doctor} ... flet build apk --clear-cache
[14:35:54] Doctor summary (to see all details, run flutter doctor -v):
│ Error building Flet app - see the log of failed command above. |
Beta Was this translation helpful? Give feedback.
-
Temporary solution, go back to version 0.26.0, while I figure out how to incorporate the flet_video and flet_audio packages, thank you very much for the help. Best regards |
Beta Was this translation helpful? Give feedback.
-
flet build apk -v
[19:29:57] Run subprocess: ['C:\\flutter\\bin\\flutter.BAT', '--version',
'--no-version-check', '--suppress-analytics']
[19:29:58] Flutter 3.27.4 installed ✅
Flutter executable: C:\Users\super\flutter\3.27.4\bin\flutter.bat
Dart executable: C:\Users\super\flutter\3.27.4\bin\dart.bat
Configuring Flutter's path to JDK
Run subprocess:
['C:\\Users\\super\\flutter\\3.27.4\\bin\\flutter.bat', 'config',
'--no-version-check', '--suppress-analytics', '--jdk-dir=C:\\Program
Files\\Eclipse Adoptium\\jdk-17.0.14.7-hotspot\\']
[19:29:59] Setting "jdk-dir" value to "C:\Program Files\Eclipse
Adoptium\jdk-17.0.14.7-hotspot\".
You may need to restart any open editors for them to read new
settings.
JDK installed ✅
Android SDK installation found at
C:\Users\super\AppData\Local\Android\Sdk
Android SDK package "cmdline-tools;latest" is already installed
Android SDK package "platform-tools" is already installed
Android SDK package "platforms;android-35" is already installed
Android SDK package "build-tools;34.0.0" is already installed
Android SDK installed ✅
Created Flutter bootstrap project from
gh:flet-dev/flet-build-template with ref "0.27.1" ✅
Run subprocess:
['C:\\Users\\super\\flutter\\3.27.4\\bin\\dart.bat', 'run',
'--suppress-analytics', 'serious_python:main', 'package',
'C:\\turnerovisor\\turnerovisor\\src', '--platform', 'Android',
'--requirements', 'flet==0.27.1', '--exclude', 'build',
'--cleanup-packages']
[19:30:04] Because turnerovisor depends on flet_video 0.1.0 which doesn't
match any versions, version solving failed.
<_io.TextIOWrapper name=4 encoding='utf8'>
Run subprocess:
['C:\\Users\\super\\flutter\\3.27.4\\bin\\flutter.bat', 'doctor',
'--no-version-check', '--suppress-analytics']
[19:30:19] Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.27.4, on Microsoft Windows
[Versi¢n 10.0.26100.3194], locale es-VE)
[√] Windows Version (Installed version of Windows is version 10
or higher)
[√] Android toolchain - develop for Android devices (Android SDK
version 35.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio
Community 2022 17.12.4)
[√] Android Studio (version 2024.2)
[√] VS Code (version 1.97.2)
[√] Connected device (3 available)
[√] Network resources
• No issues found!
Error building Flet app - see the log of failed command above.
El dom, 23 feb 2025 a las 19:10, Feodor Fitsner ***@***.***>)
escribió:
… Can you run flet build apk -v (with verbose logging) and give me the log?
—
Reply to this email directly, view it on GitHub
<#4951 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGO3JE4UOIEOO6354COT46T2RJPPPAVCNFSM6AAAAABXWSNPMSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMRZGQ4TKNA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
The APK was compiled, but the audio and video components still say they
don't exist when running the APK. I share the log that the build returned.
flet build apk -v
[19:34:31] Run subprocess: ['C:\\flutter\\bin\\flutter.BAT', '--version',
'--no-version-check', '--suppress-analytics']
[19:34:32] Flutter 3.27.4 installed ✅
Flutter executable: C:\Users\super\flutter\3.27.4\bin\flutter.bat
Dart executable: C:\Users\super\flutter\3.27.4\bin\dart.bat
Configuring Flutter's path to JDK
Run subprocess:
['C:\\Users\\super\\flutter\\3.27.4\\bin\\flutter.bat', 'config',
'--no-version-check', '--suppress-analytics', '--jdk-dir=C:\\Program
Files\\Eclipse Adoptium\\jdk-17.0.14.7-hotspot\\']
[19:34:33] Setting "jdk-dir" value to "C:\Program Files\Eclipse
Adoptium\jdk-17.0.14.7-hotspot\".
You may need to restart any open editors for them to read new
settings.
JDK installed ✅
Android SDK installation found at
C:\Users\super\AppData\Local\Android\Sdk
Android SDK package "cmdline-tools;latest" is already installed
Android SDK package "platform-tools" is already installed
Android SDK package "platforms;android-35" is already installed
Android SDK package "build-tools;34.0.0" is already installed
Android SDK installed ✅
[19:34:42] Created Flutter bootstrap project from
gh:flet-dev/flet-build-template with ref "0.27.1" ✅
Run subprocess:
['C:\\Users\\super\\flutter\\3.27.4\\bin\\dart.bat', 'run',
'--suppress-analytics', 'serious_python:main', 'package',
'C:\\turnerovisor\\turnerovisor\\src', '--platform', 'Android',
'--requirements', 'flet==0.27.1', '--exclude', 'build',
'--cleanup-packages']
[19:34:53] Running package command
Extra PyPi indexes: [https://pypi.flet.dev]
Creating asset directory:
C:\turnerovisor\turnerovisor\src\build\flutter\app
Created temp directory:
C:\Users\super\AppData\Local\Temp\serious_python_temp29213fb6
Copying Python app from C:\turnerovisor\turnerovisor\src to a
temp directory
[19:34:54] Configured Android/arm64-v8a platform with sitecustomize.py
Installing [flet==0.27.1] with pip command to
C:\turnerovisor\turnerovisor\src\build\site-packages\arm64-v8a
Downloading Python distributive from
https://github.com/astral-sh/python-build-standalone/releases/download/20250205/cpython-3.12.9+20250205-x86_64-pc-windows-msvc-shared-install_only_stripped.tar.gz
to a build
directory
[19:34:57] Extracting Python distributive
[19:35:31] Cleanup installed packages
[19:35:33] Configured Android/armeabi-v7a platform with sitecustomize.py
Installing [flet==0.27.1] with pip command to
C:\turnerovisor\turnerovisor\src\build\site-packages\armeabi-v7a
[19:35:50] Cleanup installed packages
[19:35:52] Configured Android/x86_64 platform with sitecustomize.py
Installing [flet==0.27.1] with pip command to
C:\turnerovisor\turnerovisor\src\build\site-packages\x86_64
[19:36:07] Cleanup installed packages
[19:36:09] Configured Android/x86 platform with sitecustomize.py
Installing [flet==0.27.1] with pip command to
C:\turnerovisor\turnerovisor\src\build\site-packages\x86
[19:36:24] Cleanup installed packages
[19:36:26] Creating app archive at
C:\turnerovisor\turnerovisor\src\build\flutter\app/app.zip from a temp
directory
[19:36:27] Writing app archive hash to
C:\turnerovisor\turnerovisor\src\build\flutter\app/app.zip.hash
Deleting temp directory
Packaged Python app ✅
[19:36:34] Copying C:\turnerovisor\turnerovisor\src\assets\icon.png to
C:\turnerovisor\turnerovisor\src\build\flutter\images
Customized app icons and splash images ✅
Run subprocess:
['C:\\Users\\super\\flutter\\3.27.4\\bin\\dart.bat', 'run',
'--suppress-analytics', 'flutter_launcher_icons']
[19:36:40] ════════════════════════════════════════════
FLUTTER LAUNCHER ICONS (v0.14.3)
════════════════════════════════════════════
• Creating default icons Android
[19:36:41] • Overwriting the default Android launcher icon with a new icon
• Creating adaptive icons Android
[19:36:42] • No colors.xml file found in your Android project
• Creating colors.xml file and adding it to your Android project
• Creating mipmap xml file Android
• Overwriting default iOS launcher icon with new icon
[19:36:44] Creating Icons for Web...
[19:36:45] Creating Icons for Windows...
[19:36:46] Creating Icons for MacOS...
[19:36:47]
✓ Successfully generated launcher icons
Generated app icons ✅
Run subprocess:
['C:\\Users\\super\\flutter\\3.27.4\\bin\\dart.bat', 'run',
'--suppress-analytics', 'flutter_native_splash:create']
[19:36:54] [Android] Creating default splash images
[Android] Creating dark mode splash images
[19:36:55] [Android] Creating default android12splash images
[Android] Creating dark mode android12splash images
[19:36:56] [Android] Updating launch background(s) with splash image path...
[Android] -
android/app/src/main/res/drawable/launch_background.xml
[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
[iOS] Creating dark mode images
[19:36:57] [iOS] Updating ios/Runner/Info.plist for status bar
hidden/visible
[Web] Creating images
[19:36:58] [Web] Creating images
[19:36:59] [Web] Creating background images
[Web] Creating CSS
[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
[19:37:00] Generated splash screens ✅
Run subprocess:
['C:\\Users\\super\\flutter\\3.27.4\\bin\\flutter.bat', 'build', 'apk',
'--no-version-check', '--suppress-analytics']
[19:37:02] Resolving dependencies...
[19:37:03] Downloading packages...
[19:37:04] archive 3.6.1 (4.0.3 available)
characters 1.3.0 (1.4.0 available)
clock 1.1.1 (1.1.2 available)
collection 1.19.0 (1.19.1 available)
ffi 2.1.3 (2.1.4 available)
file_picker 8.3.7 (9.0.0 available)
fl_chart 0.69.2 (0.70.2 available)
! flet 0.27.1 (overridden)
flutter_lints 2.0.3 (5.0.0 available)
flutter_native_splash 2.4.4 (2.4.5 available)
image 4.3.0 (4.5.3 available)
intl 0.19.0 (0.20.2 available)
js 0.6.7 (0.7.2 available)
lints 2.1.1 (5.1.1 available)
material_color_utilities 0.11.1 (0.12.0 available)
meta 1.15.0 (1.16.0 available)
path 1.9.0 (1.9.1 available)
petitparser 6.0.2 (6.1.0 available)
sensors_plus 4.0.2 (6.1.1 available)
sensors_plus_platform_interface 1.2.0 (2.0.1 available)
toml 0.15.0 (0.16.0 available)
url_strategy 0.2.0 (discontinued)
! wakelock_plus 1.2.10 (overridden)
! web 1.1.0 (overridden)
web_socket_channel 2.4.5 (3.0.2 available)
! webview_flutter_android 4.3.2 (overridden)
win32 5.10.1 (5.11.0 available)
win32_registry 1.1.5 (2.1.0 available)
! window_manager 0.4.3 (overridden)
Got dependencies!
1 package is discontinued.
24 packages have newer versions incompatible with dependency
constraints.
Try `flutter pub outdated` for more information.
[19:37:09]
[19:37:48] Running Gradle task 'assembleRelease'...
Warning: SDK processing. This version only understands SDK XML
versions up to 3 but an SDK XML file of version 4 was encountered. This can
happen if you use versions of Android Studio and the command-line tools
that were released at different times.
[19:38:30] Font asset "CupertinoIcons.ttf" was tree-shaken, reducing it
from 257628 to 209160 bytes (18.8% reduction). Tree-shaking can be disabled
by providing the --no-tree-shake-icons flag when building your app.
Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing
it from 1645184 to 1261080 bytes (23.3% reduction). Tree-shaking can be
disabled by providing the --no-tree-shake-icons flag when building your
app.
[19:43:08] Running Gradle task 'assembleRelease'...
357,9s
[19:43:09] √ Built build\app\outputs\flutter-apk\app-release.apk (65.7MB)
Built .apk for Android ✅
Copying build output from:
C:\turnerovisor\turnerovisor\src\build\flutter\build\app\outputs\flutter-apk\*
Copied build to build\apk directory ✅
│ Successfully built your .apk for Android! 🥳 Find it in build\apk
directory. 📁
El dom, 23 feb 2025 a las 19:33, Feodor Fitsner ***@***.***>)
escribió:
… Workaround: delete build directory before running flet build apk
—
Reply to this email directly, view it on GitHub
<#4951 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGO3JE5ELSGULUL3SIKT4C32RJSHPAVCNFSM6AAAAABXWSNPMSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMRZGUYDONY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
See this:
You don't have I'm working on the fix in the meantime: #4955 |
Beta Was this translation helpful? Give feedback.
-
my content the file pyproject.toml. is
[project]
name = "Turnero"
version = "0.1.0"
description = ""
readme = "README.md"
requires-python = ">=3.9"
authors = [
{ name = "Freddy García", email = ***@***.***" }
]
dependencies = [
"flet==0.27.1",
"httpx",
"flet-video==0.1.0",
"flet-audio==0.1.0"
]
[tool.flet]
org = "com.superfg"
product = "turnero"
company = "Superfg.com"
copyright = "Copyright (C) 2025 by www.superfg.com"
[tool.flet.app]
path = "src"
El dom, 23 feb 2025 a las 19:53, Feodor Fitsner ***@***.***>)
escribió:
… See this:
Run subprocess:
['C:\\Users\\super\\flutter\\3.27.4\\bin\\dart.bat', 'run',
'--suppress-analytics', 'serious_python:main', 'package',
'C:\\turnerovisor\\turnerovisor\\src', '--platform', 'Android',
'--requirements', 'flet==0.27.1', '--exclude', 'build',
'--cleanup-packages']
You don't have flet-video, flet-audio in dependencies of your
pyproject.toml.
I'm working on the fix in the meantime: #4955
<#4955>
—
Reply to this email directly, view it on GitHub
<#4951 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGO3JE6UI55GIV7L4EW3QWL2RJUQZAVCNFSM6AAAAABXWSNPMSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMRZGUYTIOA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yes, it works!
Thank you very much, ask, you need to update flet again, I'm on the pip
show flet version
Name: flet
Version: 0.27.1
Summary: Flet for Python - easily build interactive multi-platform apps in
Python
Home-page: https://flet.dev
Author: Appveyor Systems Inc.
Author-email: ***@***.***
License: Apache-2.0
Location: C:desarrollo_flaskgestion360venvLibsite-packages
Requires: httpx, oauthlib, repath
Required-by: flet-audio, flet-cli, flet-video, we've already done it, the
apk has already been generated, and it already includes the video and audio
components, I had to delete the build folder again, and then run this
command
flet build apk --clear-cache -v which threw me the following log flet build
apk --clear-cache -v
[20:19:52] Run subprocess: ['C:\\flutter\\bin\\flutter.BAT', '--version',
'--no-version-check', '--suppress-analytics']
[20:19:53] Flutter 3.27.4 installed ✅
Flutter executable: C:\Users\super\flutter\3.27.4\bin\flutter.bat
Dart executable: C:\Users\super\flutter\3.27.4\bin\dart.bat
Configuring Flutter's path to JDK
Run subprocess:
['C:\\Users\\super\\flutter\\3.27.4\\bin\\flutter.bat', 'config',
'--no-version-check', '--suppress-analytics', '--jdk-dir=C:\\Program
Files\\Eclipse Adoptium\\jdk-17.0.14.7-hotspot\\']
Setting "jdk-dir" value to "C:\Program Files\Eclipse
Adoptium\jdk-17.0.14.7-hotspot\".
You may need to restart any open editors for them to read new
settings.
JDK installed ✅
Android SDK installation found at
C:\Users\super\AppData\Local\Android\Sdk
Android SDK package "cmdline-tools;latest" is already installed
Android SDK package "platform-tools" is already installed
Android SDK package "platforms;android-35" is already installed
Android SDK package "build-tools;34.0.0" is already installed
Android SDK installed ✅
[20:19:57] Created Flutter bootstrap project from
gh:flet-dev/flet-build-template with ref "0.27.1" ✅
Run subprocess:
['C:\\Users\\super\\flutter\\3.27.4\\bin\\dart.bat', 'run',
'--suppress-analytics', 'serious_python:main', 'package',
'C:\\turnerovisor\\turnerovisor\\src', '--platform', 'Android',
'--requirements',
'flet-audio==0.1.0,flet-video==0.1.0,flet==0.27.1,httpx', '--exclude',
'build', '--cleanup-packages']
[20:20:02] Running package command
Extra PyPi indexes: [https://pypi.flet.dev]
Creating asset directory:
C:\turnerovisor\turnerovisor\build\flutter\app
Created temp directory:
C:\Users\super\AppData\Local\Temp\serious_python_tempdba3ce53
Copying Python app from C:\turnerovisor\turnerovisor\src to a
temp directory
[20:20:03] Configured Android/arm64-v8a platform with sitecustomize.py
Installing [flet-audio==0.1.0, flet-video==0.1.0, flet==0.27.1,
httpx] with pip command to
C:\turnerovisor\turnerovisor\build\site-packages\arm64-v8a
Downloading Python distributive from
https://github.com/astral-sh/python-build-standalone/releases/download/20250205/cpython-3.12.9+20250205-x86_64-pc-windows-msvc-shared-install_only_stripped.tar.gz
to a build
directory
[20:20:04] Extracting Python distributive
[20:20:25] Copying Flutter packages to
C:\turnerovisor\turnerovisor\build\flutter-packages
Cleanup installed packages
[20:20:26] Configured Android/armeabi-v7a platform with sitecustomize.py
Installing [flet-audio==0.1.0, flet-video==0.1.0, flet==0.27.1,
httpx] with pip command to
C:\turnerovisor\turnerovisor\build\site-packages\armeabi-v7a
[20:20:41] Cleanup installed packages
[20:20:42] Configured Android/x86_64 platform with sitecustomize.py
Installing [flet-audio==0.1.0, flet-video==0.1.0, flet==0.27.1,
httpx] with pip command to
C:\turnerovisor\turnerovisor\build\site-packages\x86_64
[20:20:53] Cleanup installed packages
[20:20:54] Configured Android/x86 platform with sitecustomize.py
Installing [flet-audio==0.1.0, flet-video==0.1.0, flet==0.27.1,
httpx] with pip command to
C:\turnerovisor\turnerovisor\build\site-packages\x86
[20:21:06] Cleanup installed packages
Creating app archive at
C:\turnerovisor\turnerovisor\build\flutter\app/app.zip from a temp directory
[20:21:07] Writing app archive hash to
C:\turnerovisor\turnerovisor\build\flutter\app/app.zip.hash
Deleting temp directory
[20:21:08] Packaged Python app ✅
Found Flutter extension at
C:\turnerovisor\turnerovisor\build\flutter-packages\flet_audio
Found Flutter extension at
C:\turnerovisor\turnerovisor\build\flutter-packages\flet_video
Registered Flutter user extensions ✅
[20:21:12] Copying C:\turnerovisor\turnerovisor\src\assets\icon.png to
C:\turnerovisor\turnerovisor\build\flutter\images
Customized app icons and splash images ✅
Run subprocess:
['C:\\Users\\super\\flutter\\3.27.4\\bin\\dart.bat', 'run',
'--suppress-analytics', 'flutter_launcher_icons']
[20:21:19] ════════════════════════════════════════════
FLUTTER LAUNCHER ICONS (v0.14.3)
════════════════════════════════════════════
[20:21:20] • Creating default icons Android
• Overwriting the default Android launcher icon with a new icon
• Creating adaptive icons Android
[20:21:21] • No colors.xml file found in your Android project
• Creating colors.xml file and adding it to your Android project
• Creating mipmap xml file Android
• Overwriting default iOS launcher icon with new icon
[20:21:22] Creating Icons for Web...
[20:21:23] Creating Icons for Windows...
Creating Icons for MacOS...
[20:21:24]
✓ Successfully generated launcher icons
Generated app icons ✅
Run subprocess:
['C:\\Users\\super\\flutter\\3.27.4\\bin\\dart.bat', 'run',
'--suppress-analytics', 'flutter_native_splash:create']
[20:21:29] [Android] Creating default splash images
[Android] Creating dark mode splash images
[20:21:30] [Android] Creating default android12splash images
[Android] Creating dark mode android12splash images
[Android] Updating launch background(s) with splash image path...
[Android] -
android/app/src/main/res/drawable/launch_background.xml
[20:21:31] [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
[iOS] Creating dark mode images
[iOS] Updating ios/Runner/Info.plist for status bar
hidden/visible
[Web] Creating images
[20:21:32] [Web] Creating images
[20:21:33] [Web] Creating background images
[Web] Creating CSS
[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
Generated splash screens ✅
Run subprocess:
['C:\\Users\\super\\flutter\\3.27.4\\bin\\flutter.bat', 'build', 'apk',
'--no-version-check', '--suppress-analytics', '--build-name', '0.1.0']
[20:21:34] Resolving dependencies...
[20:21:35] Downloading packages...
[20:21:36] archive 3.6.1 (4.0.3 available)
audioplayers 5.2.1 (6.2.0 available)
audioplayers_android 4.0.3 (5.0.3 available)
audioplayers_darwin 5.0.2 (6.1.0 available)
audioplayers_linux 3.1.0 (4.1.0 available)
audioplayers_platform_interface 6.1.0 (7.0.0 available)
audioplayers_web 4.1.0 (5.0.1 available)
audioplayers_windows 3.1.0 (4.1.0 available)
characters 1.3.0 (1.4.0 available)
clock 1.1.1 (1.1.2 available)
collection 1.19.0 (1.19.1 available)
ffi 2.1.3 (2.1.4 available)
file_picker 8.3.7 (9.0.0 available)
fl_chart 0.69.2 (0.70.2 available)
! flet 0.27.1 (overridden)
flutter_lints 2.0.3 (5.0.0 available)
flutter_native_splash 2.4.4 (2.4.5 available)
image 4.3.0 (4.5.3 available)
intl 0.19.0 (0.20.2 available)
js 0.6.7 (0.7.2 available)
lints 2.1.1 (5.1.1 available)
material_color_utilities 0.11.1 (0.12.0 available)
meta 1.15.0 (1.16.0 available)
path 1.9.0 (1.9.1 available)
petitparser 6.0.2 (6.1.0 available)
safe_local_storage 1.0.2 (2.0.1 available)
screen_brightness 0.2.2+1 (2.1.1 available)
screen_brightness_android 0.1.0+2 (2.1.0 available)
screen_brightness_ios 0.1.0 (2.1.1 available)
screen_brightness_macos 0.1.0+1 (2.1.1 available)
screen_brightness_platform_interface 0.1.0 (2.1.0 available)
screen_brightness_windows 0.1.3 (2.1.0 available)
screen_brightness_macos 0.1.0+1 (2.1.1 available)
screen_brightness_platform_interface 0.1.0 (2.1.0 available)
screen_brightness_windows 0.1.3 (2.1.0 available)
sensors_plus 4.0.2 (6.1.1 available)
sensors_plus_platform_interface 1.2.0 (2.0.1 available)
synchronized 3.3.0+3 (3.3.1 available)
toml 0.15.0 (0.16.0 available)
uri_parser 2.0.2 (3.0.0 available)
url_strategy 0.2.0 (discontinued)
volume_controller 2.0.8 (3.3.1 available)
! wakelock_plus 1.2.10 (overridden)
! web 1.1.0 (overridden)
web_socket_channel 2.4.5 (3.0.2 available)
! webview_flutter_android 4.3.2 (overridden)
win32 5.10.1 (5.11.0 available)
win32_registry 1.1.5 (2.1.0 available)
! window_manager 0.4.3 (overridden)
Got dependencies!
1 package is discontinued.
41 packages have newer versions incompatible with dependency
constraints.
Try `flutter pub outdated` for more information.
[20:21:38]
[20:22:24] Running Gradle task 'assembleRelease'...
Warning: SDK processing. This version only understands SDK XML
versions up to 3 but an SDK XML file of version 4 was encountered. This can
happen if you use versions of Android Studio and the command-line tools
that were released at different times.
[20:23:05] Font asset "CupertinoIcons.ttf" was tree-shaken, reducing it
from 257628 to 209160 bytes (18.8% reduction). Tree-shaking can be disabled
by providing the --no-tree-shake-icons flag when building your app.
Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing
it from 1645184 to 1261080 bytes (23.3% reduction). Tree-shaking can be
disabled by providing the --no-tree-shake-icons flag when building your app.
[20:25:19] Note:
C:\Users\super\AppData\Local\Pub\Cache\hosted\pub.dev\media_kit_video-1.2.5\android\src\main\java\com\alexmercerind\media_kit_video\VideoOutput.java
uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
[20:27:48] Running Gradle task 'assembleRelease'...
370,3s
[20:27:50] √ Built build\app\outputs\flutter-apk\app-release.apk (83.2MB)
Built .apk for Android ✅
Copying build output from:
C:\turnerovisor\turnerovisor\build\flutter\build\app\outputs\flutter-apk\*
Copied build to build\apk directory ✅
Successfully built your .apk for Android! 🥳 Find it in build\apk
directory
El dom, 23 feb 2025 a las 20:00, Feodor Fitsner ***@***.***>)
escribió:
… OK, I'm running Flet 0.27 flet build apk -v with exactly your
pyproject.toml and I'm getting it alright:
image.png (view on web)
<https://github.com/user-attachments/assets/a34f321d-aa7e-4837-9f68-336ef6d1a010>
—
Reply to this email directly, view it on GitHub
<#4951 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGO3JE5KL3NBGD2QSBYI7AT2RJVJPAVCNFSM6AAAAABXWSNPMSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMRZGUYTQMQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
(env) C:\Users\hello\OneDrive\Desktop\manatech>flet build apk --clear-cache -v
[13:02:42] JDK installed ✅
[13:07:25] • No colors.xml file found in your Android project
[13:07:27] Generated app icons ✅
[13:07:34] Resolving dependencies...
[13:13:47] Running Gradle task 'assembleRelease'... 368.7s
[13:13:56] Doctor summary (to see all details, run flutter doctor -v):
╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ I am getting the same error while using flet build apk --clear-cache -v. How can I resolve this issue? Please help. |
Beta Was this translation helpful? Give feedback.
-
I run the command to create the apk in flet version 0.27.0
flet build apk
and it gives me this error.
flet build apk
[13:47:53] Flutter 3.27.4 installed ✅
[13:47:54] JDK installed ✅
Android SDK installed ✅
Created Flutter bootstrap project from gh:flet-dev/flet-build-template with ref "0.27.1" ✅
[13:47:55] Unhandled exception:
Could not find an option named "--cleanup-packages".
Usage: dart run serious_python:main package
-h, --help Print this usage information.
-p, --platform (mandatory) Install dependencies for specific platform, e.g. 'Android'.
--arch Install dependencies for specific architecture only. Leave empty to install all supported architectures.
-r, --requirements Pip dependencies in the format 'dep1,dep2==version,... Allows any pip options.'
-a, --asset Output asset path, relative to pubspec.yaml, to package Python program into.
--exclude List of relative paths to exclude from app package, e.g. "assets,build".
--compile-app Compile Python application before packaging.
--compile-packages Compile application packages before packaging.
--cleanup Cleanup app and packages from unneccessary files and directories.
--verbose Verbose output.
Run "dart run serious_python:main help" to see global options.
#0 Command.usageException (package:args/command_runner.
│ Error building Flet app - see the log of failed command above.
What can or should I do to correct this?
Beta Was this translation helpful? Give feedback.
All reactions