Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xamarin Android Error: Could not resolve reference to 'SQLitePCL.delegate_progress_handler' #1038

Open
comfr3ak opened this issue Apr 6, 2021 · 1 comment

Comments

@comfr3ak
Copy link

comfr3ak commented Apr 6, 2021

App builds fine in UWP and iOS.

Building in Visual Studio 2019, version 16.9.3

Using sqlite-net-sqlcipher, version 1.7.335

When attempting to build Xamarin Android app, receive the following error:

Error Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: Could not resolve reference to 'SQLitePCL.delegate_progress_handler' (defined in assembly 'SQLitePCLRaw.provider.e_sqlite3, Version=1.1.14.520, Culture=neutral, PublicKeyToken=9c301db686d0bd12') with scope 'SQLitePCLRaw.core, Version=1.1.14.520, Culture=neutral, PublicKeyToken=1488e028ca7ab535'. When the scope is different from the defining assembly, it usually means that the type is forwarded. ---> Mono.Cecil.ResolutionException: Failed to resolve SQLitePCL.delegate_progress_handler

@ondrejsv
Copy link

Your project references incompatible mix of the sqlite-net-sqlcipher (1.7) and its dependencies like SQLitePCLRaw.provider.e_sqlite3 (1.1).
Double check your Nuget packages and direct project references.
See also ericsink/SQLitePCL.raw#384.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants