Local Lottie Assets Not Rendering in Deployed Android APK #3083
Labels
bug
Something isn't working
packaging
Related to app packaging
platform: android
Specific to Android
Issue Description:
I am developing an Android application using Flet, where I'm trying to display a local Lottie asset (
B.json
) within a deployed APK.I've verified that the file
B.json
is indeed present in the APKapp.zip
. However the assets folder is not present in the temporary flutter build folder nor is theassets
dir present in thepubspec.yaml
in modifying the flet build as follows I can make it work
Environment:
Steps to Reproduce:
flet build apk
with specified parameters.Expected Behavior:
The Lottie asset
B.json
should render as it does in the local linux development environment.local Lottie asset
src
should be consistent across target deployments ie LinuxActual Behavior:
The Lottie local asset does not render in the deployed APK,
while other assets such as local PNG's and Lottie URL asset appear correctly.
Code Example:
Here is the relevant portion of code where the Lottie assets are consumed for intended to display:
In the spirit of keeping this issue as brief as possible, the code is in a gist , The following gist creates a series of cards to find what permutations work and what if any errors are able to be captured see
https://gist.github.com/auphof/32f4f22328374d4e13ebc5a28206fb13
Additional Context:
Attempts to Resolve:
Any insights or alternative suggestions on how to resolve this issue would be greatly appreciated!
The text was updated successfully, but these errors were encountered: