在Uinity中使用Flurl.Http时遇到错误:
Assembly 'Assets/Packages/Flurl.Http.4.0.2/lib/netstandard2.0/Flurl.Http.dll' will not be loaded due to errors:
Flurl.Http references strong named System.Text.Encoding.CodePages Assembly references: 4.1.1.0 Found in project: 8.0.0.0.
Assembly Version Validation can be disabled in Player Settings "Assembly Version Validation"

显示Flurl.Http4.0.2要求使用 System.Text.Encoding.CodePages 4.1.1.0 但是我们安装的8.0.0.0。

解决办法如下:

Assembly Version Validation can be disabled in Player Settings "Assembly Version Validation"

在Unity Editor菜单中:Edit -> Project Settings -> Player 
找到Assembly Version Validation ,把后面的勾去掉,如下图所示。

设置

如果不是迫非得已也不会去这个选项,是目前 Unity 使用Nuget包时的一个漏洞。