Akavache: SQLitePCL in NETSTANDARD error
Describe the bug
Using the latest version in .NET STANDARD 2.0.3 and Android the InMemory work, but if I try to save a value using UserAccount a SQLite error is throwed:
“System.MissingMethodException: Method not found: int SQLitePCL.raw.sqlite3_bind_blob(SQLitePCL.sqlite3_stmt,int,System.ReadOnlySpan`1<byte>)”
I have initialized in App.xaml.cs using these code:
BlobCache.ApplicationName="TEST";
Registrations.Start("TEST");
BlobCache.EnsureInitialized();
And then called this code on button click:
var test = await BlobCache.UserAccount.InsertObject(“AAA”, “http://www.AAA.it”);
Seems related to SQLite PCL (installed in NETSTANDARD project), but I have not found a way or a workaround to resolve it.
Steps To Reproduce
- Create a blank Xamarin.Forms project
- Add below code
- Run the Android project (I use 8.1).
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (5 by maintainers)
We been busy working a rewrite at the moment since akavache needed it. Should solve issues like this one