You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building an Android application using Flet and need to include specific files (e.g., Excel files, jsons) within the app's package to ensure they are accessible after the build. The code in my app relies on these files, but they are not used directly by any Flet-specific functions. After building the app, I noticed that the FLET_ASSETS_DIR environment variable is no longer available.
How can I properly include and access these files post-build, ensuring that they are bundled with the application? Is there a recommended approach for handling files that need to be accessed by Python code after the Android app is compiled?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Question
I am building an Android application using Flet and need to include specific files (e.g., Excel files, jsons) within the app's package to ensure they are accessible after the build. The code in my app relies on these files, but they are not used directly by any Flet-specific functions. After building the app, I noticed that the FLET_ASSETS_DIR environment variable is no longer available.
How can I properly include and access these files post-build, ensuring that they are bundled with the application? Is there a recommended approach for handling files that need to be accessed by Python code after the Android app is compiled?
Code sample
No response
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions