0

I have problem with my lottie XML, is null this my code:

<com.airbnb.lottie.LottieAnimationView
    android:id="@+id/animationView"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:lottie_rawRes="@raw/animation"
    app:lottie_autoPlay="true"
    app:lottie_loop="true"/>

This is my gradle implementation of Lottie:

implementation "com.airbnb.android:lottie:3.4.0"

This is the error (image SS code) this image

TylerH
  • 20,799
  • 66
  • 75
  • 101

1 Answers1

0

Maybe It works in the below changes:

Change version "com.airbnb.android:lottie:3.4.0" to "com.airbnb.android:lottie:3.7.0"

also in build.gradle :

change jcenter() to mavenCentral()

Still you getting same problem goto File > Invalidate Caches/Restart

Ganesh MB
  • 1,109
  • 2
  • 14
  • 27