Closed Actualization closed 1 year ago
The issue is that LottieAnimationView extends AppCompatImageView which isn't added as a dependency in wearOS by default. Add implementation 'androidx.appcompat:appcompat:1.5.1'
(or whatever the latest version is) and it'll work.
When adding lottie-android to a Wear OS 3 project in Android Studio it compiles well but adding any lottie elements to the view such as the basics examples in the documentation http://airbnb.io/lottie/#/android?id=from-xml results in the error:
Cannot resolve class com.airbnb.lottie.LottieAnimationView
WearOS appears to be a paired down Android with tweaks, developed in Android Studio using Android files and APIs.To Reproduce
Cannot resolve class com.airbnb.lottie.LottieAnimationView
.I haven't been able to find any documentation on the web for using lottie on the new codebase of WearOS3 ( or earlier versions). Google has been using WebP as an animation option on WearOS 3.