I don't know if the something wrong with json, but it was exported by AE. Please spend some time, Thanks very much!
I found something wrong in codes. If json contains ".png", must provide the images folder. I use AI and then Export into AE, it has no png images! @seanfchan
java.lang.IllegalStateException:
You must set an images folder before loading an image. Set it with LottieComposition#setImagesFolder or LottieDrawable#setImagesFolder
at com.airbnb.lottie.ImageAssetBitmapManager.bitmapForId(ImageAssetBitmapManager.java:70)
@SwayChen not exactly sure what the problem is, but here a few thing to try.
@gpeal any other thoughts?
@SwayChen When you import an Illustrator layer, convert your AI layer to a shape layer or else bodymovin will export it as a png.
https://helpx.adobe.com/after-effects/atv/cs6-tutorials/converting-imported-vector-graphics-from-illustrator-to-shape-la.html
Thanks for your reply, I will try it!
I just found the documentation about AI layers and the tip about converting them to shapes in bodymovin wiki bodymovin/bodymovin/wiki/Shapes#illustrator-layers
@fdnhkj Thanks a lot! I just send the wiki page to our designer :)
Most helpful comment
@SwayChen When you import an Illustrator layer, convert your AI layer to a shape layer or else bodymovin will export it as a png.
https://helpx.adobe.com/after-effects/atv/cs6-tutorials/converting-imported-vector-graphics-from-illustrator-to-shape-la.html