首页 > 解决方案 > Xamarin Forms 链接的 DLL 异常

问题描述

我在尝试将 DLL 文件链接到我的 Xamarin Forms 项目时遇到问题。我按照这里的建议添加 DLL 文件作为对项目 Android 部分的引用。我还尝试将引用链接添加到 DLL 文件随附的 C# 文件中。我不太确定这个异常是什么,尤其是如何解决它。任何帮助将不胜感激。仅供参考,下面的代码仅用于 Android 项目的 MainActivity.cs 文件,而不是普通的 Xamarin.Forms 文件。但是我在那里遇到了同样的错误。

使用的代码

UInt32 ftdiDeviceCount = 0;
var newDevice = new FTDI(); 
FTDI.FT_STATUS ftStatus = newDevice.GetNumberOfDevices(ref ftdiDeviceCount);

例外

**System.EntryPointNotFoundException:** 'LoadLibrary assembly:<unknown assembly> type:<unknown type> member:(null)'

标签: c#xamarinxamarin.forms

解决方案


推荐阅读