Lottie nuget,在 Android 中抛出“java exited with code 1”错误Xamarin 表单

问题描述

我已经安装了 Com.Airbnb.Xamarin.Forms.Lottie nuget 4.0.8 版。当我在 Android 设备上运行该应用程序时,它会在编译时抛出 java exited with code 1 错误

在我的项目中,Xamarin.Forms nuget 版本是 4.8.0.1821

在我的 Android 构建选项中禁用了 Pro 防护,并且还启用了 Multidex 选项。此外,我尝试增加堆大小,但仍然无效,有人知道如何解决此问题或任何解决方法吗?

enter image description here

构建输出

enter image description here

解决方法

我已经找到了这个错误的真正原因。这个错误实际上是由现代httpclient (2.4.2) 引起的。我已经从所有项目中删除了这个 nuget,错误消失了!所以,真正的罪魁祸首是现代httpclient而不是Lottie。

我希望这可能对某人有所帮助。