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

Lottie presplash doesn't work anymore. #2

Open
XIDennis opened this issue Jul 23, 2022 · 9 comments
Open

Lottie presplash doesn't work anymore. #2

XIDennis opened this issue Jul 23, 2022 · 9 comments

Comments

@XIDennis
Copy link

XIDennis commented Jul 23, 2022

If a lottie presplash is added, buildozer will fail to build the apk, and outputs the following warning:
`[WARNING]: ERROR: /github/workspace/.buildozer/android/platform/build-armeabi-v7a/dists/lottiedemo/gradlew failed!

Command failed: /bin/python3 -m pythonforandroid.toolchain apk --bootstrap sdl2 --dist_name lottiedemo --name 'Lottie Demo' --version 0.1 --package dev.tshirtman.lottiedemo --minsdk 21 --ndk-api 21 --private /github/workspace/.buildozer/android/app --android-entrypoint org.kivy.android.PythonActivity --android-apptheme @android:style/Theme.NoTitleBar --presplash-lottie /github/workspace/"42369-weather-wind.json" --orientation portrait --window --copy-libs --arch armeabi-v7a --color=always --storage-dir="/github/workspace/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21 --ignore-setup-py --debug

ENVIRONMENT:

ACTIONS_RUNTIME_TOKEN = '***'

ACTIONS_CACHE_URL = 'https://artifactcache.actions.githubusercontent.com/PcGKCECPDDF9pMVmkMxR8RcUNIgUsBo29cGsmKLFa20C7N7z7w/'

USER = 'user'

LANGUAGE = 'en_US.UTF-8'

CI = 'true'

HOSTNAME = 'd9c0b60afec4'

GITHUB_ENV = '/github/file_commands/set_env_021fd843-4475-4674-9778-075882285bec'

WORK_DIR = '/home/user/hostcwd'

HOME = '/home/user'

SRC_DIR = '/home/user/src'

GITHUB_EVENT_PATH = '/github/workflow/event.json'

RUNNER_TEMP = '/home/runner/work/_temp'

GITHUB_REPOSITORY_OWNER = 'XIDennis'

PYTHONUNBUFFERED = '1'

GITHUB_RETENTION_DAYS = '90'

GITHUB_HEAD_REF = ''

GITHUB_GRAPHQL_URL = 'https://api.github.com/graphql'

HOME_DIR = '/home/user'

BUILDOZER_WARN_ON_ROOT = '0'

ACTIONS_RUNTIME_URL = 'https://pipelines.actions.githubusercontent.com/PcGKCECPDDF9pMVmkMxR8RcUNIgUsBo29cGsmKLFa20C7N7z7w/'

GITHUB_API_URL = 'https://api.github.com/'

RUNNER_OS = 'Linux'

GITHUB_WORKFLOW = 'CI'

APP_ANDROID_ACCEPT_SDK_LICENSE = '1'

GITHUB_RUN_ID = '2724192180'

GITHUB_BASE_REF = ''

GITHUB_REF_TYPE = 'branch'

GITHUB_ACTION_REPOSITORY = 'ArtemSBulgakov/buildozer-action'

PATH = '/github/workspace/./.buildozer_global/android/platform/apache-ant-1.9.4/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'

RUNNER_TOOL_CACHE = '/opt/hostedtoolcache'

GITHUB_RUN_NUMBER = '1'

RUNNER_ARCH = 'X64'

GITHUB_ACTION = 'buildozer'

LANG = 'en_US.UTF-8'

INPUT_WORKDIR = '.'

GITHUB_REPOSITORY = 'XIDennis/Test'

GITHUB_REF_NAME = 'main'

RUNNER_NAME = 'Hosted Agent'

GITHUB_ACTION_REF = 'v1'

GITHUB_ACTIONS = 'true'

GITHUB_REF_PROTECTED = 'false'

BUILDOZER_BIN = './bin'

GITHUB_WORKSPACE = '/github/workspace'

GITHUB_JOB = 'build'

INPUT_COMMAND = 'buildozer android debug'

BUILDOZER_BUILD_DIR = './.buildozer'

GITHUB_RUN_ATTEMPT = '1'

GITHUB_SHA = '88d68ed4f05cbff419dfc20a46b8354b470eafa1'

GITHUB_ACTOR = 'XIDennis'

GITHUB_REF = 'refs/heads/main'

INPUT_BUILDOZER_VERSION = 'master'

RUNNER_WORKSPACE = '/home/runner/work/Test'

GITHUB_PATH = '/github/file_commands/add_path_021fd843-4475-4674-9778-075882285bec'

LC_ALL = 'en_US.UTF-8'

PWD = '/github/workspace'

GITHUB_EVENT_NAME = 'push'

GITHUB_SERVER_URL = 'https://github.com/'

INPUT_REPOSITORY_ROOT = '.'

GITHUB_STEP_SUMMARY = '/github/file_commands/step_summary_021fd843-4475-4674-9778-075882285bec'

PACKAGES_PATH = '/github/workspace/./.buildozer_global/android/packages'

ANDROIDSDK = '/github/workspace/./.buildozer_global/android/platform/android-sdk'

ANDROIDNDK = '/github/workspace/./.buildozer_global/android/platform/android-ndk-r23b'

ANDROIDAPI = '28'

ANDROIDMINAPI = '21'

Buildozer failed to execute the last command

The error might be hidden in the log above this error

Please read the full log, and search for it before

raising an issue with buildozer itself.

In case of a bug report, please add a full log with log_level = 2`

@Jalkhov
Copy link

Jalkhov commented Oct 9, 2022

Same issue here, got:

[INFO]:    STDOUT (last 20 lines of 68):
[DEBUG]:  debugRuntimeClasspath -> com.airbnb.android:lottie:3.4.0 -> androidx.appcompat:appcompat:1.0.0 -> androidx.vectordrawable:vectordrawable-animated:1.0.0	

@Ahd999
Copy link

Ahd999 commented Nov 3, 2022

Yea it is actually supported but there is a catch,
If you compile the app using the buildozer.spec file that is provided by tshirtman then it will not work, the reason: his buildozer spec dosent contain a line that is required for latest build and that is android.enable_androidx = true, if that is set and max api level is set to 28 the app is compiled without errors

@Ahd999
Copy link

Ahd999 commented Nov 3, 2022

Now the thing is that his App when compiled, the lottie anim works seamlessly but my app crashes after showing the lottie anim halfway, and I don't know why that is happening so if you guys find any way or it works for you just after compilation, i am in a need of assistance, thanks in advance:)

@Ahd999
Copy link

Ahd999 commented Nov 14, 2022

Same issue here, got:

[INFO]:    STDOUT (last 20 lines of 68):
[DEBUG]:  debugRuntimeClasspath -> com.airbnb.android:lottie:3.4.0 -> androidx.appcompat:appcompat:1.0.0 -> androidx.vectordrawable:vectordrawable-animated:1.0.0	

Check the method mate

@purushottam858
Copy link

Now the thing is that his App when compiled, the lottie anim works seamlessly but my app crashes after showing the lottie anim halfway, and I don't know why that is happening so if you guys find any way or it works for you just after compilation, i am in a need of assistance, thanks in advance:)

on which android version is it crashing ..?

@Ahd999
Copy link

Ahd999 commented Jan 6, 2023

Mine is running on android 12 have tested on both android 11 & 12

@Ahd999
Copy link

Ahd999 commented Jan 6, 2023

It's not abt the android version it's about way of writing code

@Ahd999
Copy link

Ahd999 commented Jan 6, 2023

I had my code initialising a dictionary on runtime which meant the dictionary object will be created before the app class was declared and run, this resulted in app crashing when I had lottie splash compiled.

Few days after, i changed the initialization of the dictionary and declared it within the class where it was required and eureka, it resulted in an error free app

`
before:
Necessary imports
Dict1={}
class dict_req():
Stuff
class app(App):
build stuff

app().run()

Gave error
`

`after
Necessary imports

class dict_req():
Dict1={}

class app(App):
build stuff

app().run()

Error free
`

@Sahil-pixel
Copy link

is it solved ?

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

5 participants