The Airbnb Lottie Android library (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/tutosrive/lottie-kt-test/llms.txt
Use this file to discover all available pages before exploring further.
com.airbnb.android:lottie) is the engine that parses Lottie JSON files and renders them as scalable, hardware-accelerated animations inside a LottieAnimationView widget. This project uses version 6.7.1, which supports the full range of After Effects features exposed by the Bodymovin exporter and runs on API 16 and above.
Declaring the Dependency
Add a singleimplementation line inside the dependencies { } block of your app/build.gradle.kts:
app/build.gradle.kts
The library is hosted on Maven Central. Modern Android Gradle Plugin (AGP) projects include Maven Central in their repository list by default, so no additional
repositories { } block is required in either settings.gradle.kts or build.gradle.kts.File → Sync Project with Gradle Files in Android Studio) and the library will be downloaded and indexed automatically.
Placing Animation Files
Lottie reads animation data from.json files bundled with the app. The standard location is app/src/main/assets/ — any file placed here is packaged into the APK and accessible at runtime by filename alone.
| File | Purpose |
|---|---|
wh.json | Default animation loaded on app launch |
logo2.json | Alternate animation swapped in by the Change button |
assets/ folder does not exist yet, create it by right-clicking app/src/main in the Android Studio project view and selecting New → Directory → assets.
Now that Lottie is on the classpath and your JSON files are in place, proceed to load and play an animation: Loading Animations