我在Android和iOS上使用Xamarin.Forms。试图使Lottie动画起作用,但是支持.NET Standard 2.0的最新版本的Lottie(2.5.4)在Android项目中给出了构建错误:
The type or namespace name 'Droid' does not exist in the namespace 'Lottie.Forms' (are you missing an assembly reference?)
查看Lottie GitHub源代码显示了名称空间和类,因此我不确定为什么我的Android项目找不到引用。
我曾尝试将Lottie降级,但到目前为止还没有运气。包含参考(2.5.0)的最早版本不适用于.NET Standard。
有想法吗?