使用Lottie的时候报这个错
You must set an images folder before loading an image. Set it with LottieCom
之前用json文件的播放动画的时候,贼简单,现在报错,搜搜看
开始用
animation.setImageAssetsFolder("")处理,不报错但是没显示图片
然后看了下,发现json动画做了额外的images/ 文件夹里面的图片依赖;
把images的路径放在folder设过去
animation.setImageAssetsFolder("/images")
然后就这么解决了