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

DataBinderMapperImpl & JSON parser issue #4

Closed
Cdik opened this issue Jun 25, 2019 · 2 comments
Closed

DataBinderMapperImpl & JSON parser issue #4

Cdik opened this issue Jun 25, 2019 · 2 comments

Comments

@Cdik
Copy link

Cdik commented Jun 25, 2019

Hey!

DataBinding issue when using the library with AndroidX in Kotlin.
Failed resolution of: Landroidx/databinding/DataBinderMapperImpl;

When dataBinding { enabled = true } then it rises Unable to parse composition

Also reporter on lottie-android (might be related to JSON reader)

@Cdik
Copy link
Author

Cdik commented Jun 25, 2019

Okay I just found a way to make it work.

You have to put the lottie animation inside the assets folder (it crashes if inside the raw folder)
Declare the source to be MenuItem.Source.Assets and don't forget the dataBinding { enabled = true } in the gradle file otherwise you'll end up with Landroidx/databinding/DataBinderMapperImpl; error

@Cdik Cdik closed this as completed Jun 25, 2019
@erKaranjeet
Copy link

after adding databinding i am getting the different issue.
Missing values for keyframe.

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

2 participants