Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running on flet 0.20.2 #74

Open
glira opened this issue Feb 20, 2024 · 1 comment
Open

running on flet 0.20.2 #74

glira opened this issue Feb 20, 2024 · 1 comment

Comments

@glira
Copy link

glira commented Feb 20, 2024

already is possible generate the apk using the flet_example with new version flet 0.20.2 or only with 0.8.4 ?

@glira
Copy link
Author

glira commented Feb 20, 2024

I am try build some apk here see the log

C:\Users\root\Desktop\serious_python_apk\1_app_example\teste>flet build apk --verbose
Flutter bootstrap directory: C:\Users\root\AppData\Local\Temp\flet_flutter_build_YCpJzWXeYv
Additional Flutter dependencies:
{}
Creating Flutter bootstrap project...OK
Customizing app icons and splash images...OK
Generating app icons...
Run subprocess: ['C:\\src\\flutter\\bin\\dart.BAT', 'run', 'flutter_launcher_icons']
Resolving dependencies in C:\Users\root\AppData\Local\Temp\flet_flutter_build_YCpJzWXeYv... (3.2s)
Got dependencies in C:\Users\root\AppData\Local\Temp\flet_flutter_build_YCpJzWXeYv.
Building package executable... (4.0s)
Built flutter_launcher_icons:flutter_launcher_icons.
  ════════════════════════════════════════════
     FLUTTER LAUNCHER ICONS (v0.13.1)
  ════════════════════════════════════════════

• Creating default icons Android
• Overwriting the default Android launcher icon with a new icon
• Overwriting default iOS launcher icon with new icon
Creating Icons for Web...
Creating Icons for Windows...
Creating Icons for MacOS...

✓ Successfully generated launcher icons
OK
Generating splash screens...
Run subprocess: ['C:\\src\\flutter\\bin\\dart.BAT', 'run', 'flutter_native_splash:create']
Building package executable... (4.4s)
Built flutter_native_splash:create.
[Android] Creating default splash images
[Android] Creating dark mode splash images
[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
[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
[Web] Creating images
[Web] Creating background images
[Web] Creating CSS
[Web] Updating index.html
╔════════════════════════════════════════════════════════════════════════════╗
║                       NEED A GREAT FLUTTER DEVELOPER?                      ║
╠════════════════════════════════════════════════════════════════════════════╣
║                                                                            ║
║   I am available!  Find me at https://www.linkedin.com/in/hansonjon/       ║
║                                                                            ║
╚════════════════════════════════════════════════════════════════════════════╝

✅ 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

OK
Packaging Python app...
Run subprocess: ['C:\\src\\flutter\\bin\\dart.BAT', 'run', 'serious_python:main', 'package',
'C:\\Users\\root\\Desktop\\serious_python_apk\\1_app_example\\teste', '--mobile', '--platform', 'mobile',
'--dep-mappings', 'flet=flet-embed', '--req-deps', 'flet-embed', '--exclude', 'build']
Building package executable... (2.3s)
Built serious_python:main.
Running package command
Creating asset directory: C:\Users\root\AppData\Local\Temp\flet_flutter_build_YCpJzWXeYv\app
Copying Python app from C:\Users\root\Desktop\serious_python_apk\1_app_example\teste to C:\Users\root\AppData\Local\Temp\serious_python_tempefe4fb6f
Configured mobile platform with sitecustomize.py at C:\Users\root\AppData\Local\Temp\serious_python_sitecustomizec51221de\sitecustomize.py
Installing dependencies [flet-embed] with pip command to C:\Users\root\AppData\Local\Temp\serious_python_tempefe4fb6f\__pypackages__
Extracting Python distributive from C:\Users\root\AppData\Local\Temp\cpython-3.11.6+20231002-x86_64-pc-windows-msvc-shared-install_only.tar.gz to C:\Users\root\AppData\Local\Temp\hostpython3.11_66a6614b
Error: ProcessException: O sistema não pode encontrar o arquivo especificado.

  Command: C:\Users\root\AppData\Local\Temp\hostpython3.11_66a6614b\python\python.exe -m pip install --isolated --upgrade --target C:\Users\root\AppData\Local\Temp\serious_python_tempefe4fb6f\__pypackages__ flet-embed
Deleting temp directory C:\Users\root\AppData\Local\Temp\serious_python_tempefe4fb6f
Deleting sitecustomize directory C:\Users\root\AppData\Local\Temp\serious_python_sitecustomizec51221de
Deleting Python directory C:\Users\root\AppData\Local\Temp\hostpython3.11_66a6614b
Deleting Flutter bootstrap directory C:\Users\root\AppData\Local\Temp\flet_flutter_build_YCpJzWXeYv
Flet app package app/app.zip was not created.

I thought the file wasn't downloaded but it's there cpython-3.11.6+20231002-x86_64-pc-windows-msvc-shared-install_only.tar.gz so I don't know what could be I need help please, I'm a little desperate , because there have been many hours without being able to resolve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant