lottie-android
lottie-android copied to clipboard
Add Wear OS support? (Wear OS is pretty much Android at many levels)
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
- Create two projects from Android Studio wizard via the file -> new menu. One should be a "Phone" "Basic Activity". The second should be a "WearOS" "Blank Activity".
- Import lottie-android via the build.gradle file in both projects, they should both compile fine.
- Adding a "com.airbnb.lottie.LottieAnimationView" View element to the layout of both. The Android one should work as expected while the WearOS one will return the file and compile error
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.