Android lottie java.lang.IllegalStateException: Missing values for keyframe.
原创
©著作权归作者所有:来自51CTO博客作者wx5ba8dc11102bc的原创作品,请联系作者获取转载授权,否则将追究法律责任
问题一
- 在Adobe After Effects和bodymovin插件,重新导出json后,正常显示。Settings > Advanced > Export Old Json Format
问题二
- java.lang.IllegalStateException: You must set an images folder before loading an image. Set it with LottieComposition#setImagesFolder or LottieDrawable#setImagesFolder
- 在assets下创建文件夹 splash
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/splash_animation"
android:layout_width="300dp"
android:layout_height="300dp"
android:layout_centerInParent="true"
app:lottie_autoPlay="true"
app:lottie_imageAssetsFolder="splash"
app:lottie_fileName="android.json"
app:lottie_loop="false">
</com.airbnb.lottie.LottieAnimationView>