-
Notifications
You must be signed in to change notification settings - Fork 161
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
SQLitePlatformAndroid and SQLitePlatformIOS instantiation fails #358
Comments
Kudos to the guys fixing/maintaining SQLite.Net PCL and Extensions. Whoever patched those, you've solved this particular issue! Thank you! |
Hi, @blmiles I still have this same issue, how do I fix it. This is in a Xamarin.iOS project |
Actually, I didn't do anything. Wait! The update adds additional and duplicate packages so I deleted ALL packages related to SQLite.Net Extensions. That's why I assumed someone had updated the either/both packages. |
So I update SQLite.Net then delete all packages related to .Net Extensions then add the SQLite.Net Extensions separately? |
Update all SQLite related packages. |
Okay, thanks. Let me try that. |
Hello,
var sqlitePlatform = new SQLite.Net.Platform.XamarinAndroid.SQLitePlatformAndroid();
OR
var sqlitePlatform = new SQLite.Net.Platform.XamarinAndroid.SQLitePlatformIOS();
both cause this error:
"VTable setup of type SQLite.Net.Platform.XamarinAndroid.SQLiteApiAndroid failed"
OR
"VTable setup of type SQLite.Net.Platform.XamarinIOS.SQLiteApiIOS failed"
All refs and using statements correct. I can instantiate a SQLiteConnnection if I put this directly into the args: new SQLite.Net.Platform.XamarinAndroid.SQLitePlatformAndroid() but not by creating a sqlitePlatform first to add as an arg for the SQLiteConnection(platform, path)
This is in a Xamarin Forms shared project.
Another explanation is here:
https://forums.xamarin.com/discussion/95904/sqlite-net-connections-and-xamarin-forms#latest
Please advise if at all possible.
Thanks
The text was updated successfully, but these errors were encountered: