Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Cross-Platform-Entwicklung (https://www.delphipraxis.net/91-cross-platform-entwicklung/)
-   -   Firedac Android "unable to open database file" (https://www.delphipraxis.net/205437-firedac-android-unable-open-database-file.html)

renew 9. Sep 2020 15:34

Firedac Android "unable to open database file"
 
Ich habe mal wieder Probleme mit eine plattformunabhängigen App unter Android:
ESQLiteNativeException mit Meldung '[FireDAC][Phys][SQLite] ERROR: unable to open database file'.

Unter Windows funktioniert es. Datenbank-File ist als Projekt-File hinzugefügt. Auch unter "Bereitstellung" als ProjectFile und Remote-Pfad ".\assets\internal\". LockingMode=Normal
Und im BeforeConnect-Event der TDFConnection wird der Pfad für das Datenbank-File gesetzt:
Code:
  dbPath := TPath.Combine(TPath.GetDocumentsPath, 'test.s3db');
  FDConnection.Params.AddPair('Database', dbPath);
Aber unter Android will es einfach nicht funktionieren.
Hat jemand einen Tip für mich?

jayjay77 17. Sep 2020 08:45

AW: Firedac Android "unable to open database file"
 
selbes Problem habe ich auch mit Delphi 10.4.1
melde mich, wenn ich was gefunden habe

KodeZwerg 17. Sep 2020 08:50

AW: Firedac Android "unable to open database file"
 
Schau mal ob sich Dein Fehler hiermit lösen lässt delphi praxis thema


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:05 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz