Damien Doumer
Damien Doumer

Reputation: 2286

Akavache throwing System.MissingMethodException: Only when Xamarin.Forms Android app is built on VS2022

I have an app made with Xamarin Forms, that uses Akavache to cache data. The app works well on iOS and Android in debug mode when I make a build with VS2019 But when I installed VS2022 and decided to make a build for android, an error occurred. This error only occurs after I build and deploy the app with VS 2022. Nothing else was changed in the project.

Here is the error:

[AppCenterCrashes] Unhandled Exception from source=AndroidEnvironment [AppCenterCrashes] System.MissingMethodException: Method not found: System.ReadOnlySpan1<byte> SQLitePCL.raw.sqlite3_column_blob(SQLitePCL.sqlite3_stmt,int) [AppCenterCrashes] at Akavache.Sqlite3.SqliteOperationQueue.MarshalCompletion[T] (System.Object completion, System.Func1[TResult] block, System.IObservable`1[T] commitResult) [0x00012] in D:\a\Akavache\Akavache\src\Akavache.Sqlite3\Queues\OperationQueue.cs:488 [AppCenterCrashes] --- End of stack trace from previous location where exception was thrown ---

Upvotes: 0

Views: 172

Answers (0)

Related Questions