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

Akavache SQLitePCL.ISQLite3Provider::sqlite3_enable_shared_cache could not be resolved #314

Closed
Karuna30 opened this issue Sep 19, 2016 · 6 comments
Labels

Comments

@Karuna30
Copy link

I am trying to use Akavache in my Xamarin Forms PCL Project. I already have implemented ISQLite dependency for both Android and IOS, and that works fine.

However as soon as I added Akavache Nuget in PCL, IOS and Android Project I keep getting this error:

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Error: 
Error executing task LinkAssemblies: error XA2006: Reference to metadata item 'System.Int32 SQLitePCL.ISQLite3Provider::sqlite3_enable_shared_cache(System.Int32)'
(defined in 'SQLitePCLPlugin_esqlite3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null') 
from 'SQLitePCLPlugin_esqlite3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' 
could not be resolved.

Running
Xamarin Studio : 6.1
Akavache 4.1.2

Would really appreciate any pointers to resolve this!

@ericsink
Copy link
Contributor

This will probably depend on transitioning Akavache to the 1.0 release of SQLitePCLRaw. #306

@Karuna30
Copy link
Author

I am not 100% sure I understand you. Do I need to wait for 5.0 or is there a workaround for now?
I already have sqlite-net-pcl and its dependencies already in my project, and I guess it is conflicting when I try to add SQLitePCLRaw.bundle_e_sqlite3.1.0.1 and use SQLitePCL.Batteries.Init();

@ericsink
Copy link
Contributor

I'm not 100% sure I know exactly what is causing this problem, so I can't be 100% sure about diagnosis and workaround. :-)

You definitely can't just add SQLitePCLRaw 1.0 stuff to a project using Akavache 4.

I suspect you will need to wait for Akavache 5.

That said, my first guess at a workaround would be to change the properties on your Xamarin.Android project to not "link".

@Karuna30
Copy link
Author

Karuna30 commented Oct 8, 2016

@ericsink Do we have an update on Akavache 5 Relese day, I am really looking forward to integrate it in my app?

@ericsink
Copy link
Contributor

ericsink commented Oct 8, 2016

There is some motion on this, see #317

ghuntley pushed a commit that referenced this issue Oct 10, 2016
…317)

See:
- http://ericsink.com/entries/sqlite_android_n.html and 
- #317 (comment)
- #314

BREAKING CHANGE: major dependency changes SQLitePCL.raw_basic replaced by SQLitePCLRaw.bundle_e_sqlite3
ghuntley added a commit that referenced this issue Oct 13, 2016
@ghuntley
Copy link
Member

Resolved at #291 (comment) please test using the packages on myget.

@lock lock bot added the outdated label Jun 25, 2019
@lock lock bot locked and limited conversation to collaborators Jun 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants