Xamarin.forms引用xamarin.tesseract库的时候出错

问题遇到的现象和发生背景

在使用Xamarin.forms的时候,引用xamarin.tesseract库,按照文档说明去操作,提示错误,画红线了。

问题相关代码,请勿粘贴截图
//这个是官方文档使用方法:
//Android
TesseractApi api = new TesseractApi (context, AssetsDeployment.OncePerVersion);
//iOS
TesseractApi api = new TesseractApi ();
await api.Init ("eng");
await api.SetImage("image_path");
string text = api.Text;


//这个是报红线的错误。
 TesseractApi api = new TesseractApi(context, AssetsDeployment.OncePerVersion);
           
            await api.Init("eng");
            await api.SetImage("image_path");
            string text = api.Text;


运行结果及报错内容

安装的是这个库:

img

实际使用中报红线:

img

这个是解决方案里面的错误提示:

img

img

这个是详细的错误描述:

img

这种情况该如何解决呢?

你把报错复制出来发给我

在 nuget console 执行:
dotnet nuget locals all --clear