I'm trying to add Lottie library into my Android Project using this line :
implementation 'com.airbnb.android:lottie:2.5.0'
& after syncing it shows this errors :
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.airbnb.android:lottie:2.5.0.
Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.airbnb.android:lottie:2.5.0.
Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.airbnb.android:lottie:2.5.0.
Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.airbnb.android:lottie:2.5.0.
I've tried adding other Lottie versions as well but still showing the same errors. I'm using Android Studio 3.2 & Target SDK is 28. Please help me how to solve this issue.