在 Delphi 12.0 中使用 Firedac 时遇到链接错误

问题描述 投票:0回答:1

我正在使用 Delphi 12 开发 Android 移动应用程序。我使用 Firedac 数据库通过 SQLLite 存储数据,并实现了 FDSSecurity 组件来进行数据加密。我可以使用 Delphi 11 运行 Android 应用程序,但在运行应用程序时出现错误:

项目引发了带有消息的异常类 EFDException '[FireDAC][Phys][SQLite][sqlite3]-303。不支持能力'。

我使用了以下代码来解决这个问题:

initialization
  FDPhysSQLiteDriverLink := TFDPhysSQLiteDriverLink.Create(nil);
  FDPhysSQLiteDriverLink.EngineLinkage  := slFDEStatic; // compatibility Delphi >=12

finalization
  FDPhysSQLiteDriverLink.Free;

但是,现在我收到错误消息 -

Project <app> raised exception class EFDException with message '[FireDAC][Phys][SQLite]-1606. SQLite library linkage [FDEStatic] is not found. Hint: If static linkage is requested and supported, include [FireDAC.Phys.SQLiteWrapper.Stat] into your project'.

我已经搜索了多个选项来解决该问题,但没有得到解决方案。

android sqlite delphi firedac delphi-11-alexandria
1个回答
0
投票

将设备 FireDAC.Phys.SQLiteWrapper.FDEStat 或 FireDAC.Phys.SQLiteWrapper.Stat 添加到您的设备。

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.