SQLite.Net-PCL icon indicating copy to clipboard operation
SQLite.Net-PCL copied to clipboard

Where did SQLite.Net.Platform.XamarinAndroid and SQLite.Net.Platform.XamarinIOS go?

Open nsolvepaul opened this issue 9 years ago • 38 comments

Updated to 3.1.0 from 3.0.5 and can't build now as SQLite.Net.Platform.XamarinAndroid has disappeared from my package list. Suggestions please

nsolvepaul avatar Nov 06 '15 09:11 nsolvepaul

I'm having the same problem. I've rolled back to 3.0.5 for now.

tbalcom avatar Nov 06 '15 15:11 tbalcom

Hmm, these nuget packages were removed some time ago. Are you saying that an install of 3.1 does not properly add these packages (when adding to an Android project)?

oysteinkrog avatar Nov 06 '15 16:11 oysteinkrog

iOS and Android both have the same issue. Note all I did was UPGRADE the packages and these packages disappeared. I tried removing the SQLite packages and adding them back but the Platform specific packages did not reappear

nsolvepaul avatar Nov 06 '15 16:11 nsolvepaul

Hm, I think it might have been a problem with me not updating all version entries in the nuspecs. I've uploaded 3.1.1 now, please test.

oysteinkrog avatar Nov 06 '15 16:11 oysteinkrog

I've updated from 3.1.0 to 3.1.1 but the problem still remains.

tbalcom avatar Nov 06 '15 16:11 tbalcom

Ta. I updated to 3.1.1 but it did not add the packages.

nsolvepaul avatar Nov 06 '15 16:11 nsolvepaul

@mattleibow Do you know why this could be happening? It's possible that it is caused by the nuget split.

oysteinkrog avatar Nov 06 '15 16:11 oysteinkrog

Same here with SQLitePlatformWinRT, nuget: SQLite.Net.Async-PCL. Ok 3.0.5, not working both 3.1.0 and 3.1.1

Problems: using SQLite.Net.Platform.WinRT;

var connectionFactory = new Func<SQLiteConnectionWithLock>(() => new SQLiteConnectionWithLock(new SQLitePlatformWinRT(), new SQLiteConnectionString(databasePath, storeDateTimeAsTicks: false)));

Sylix avatar Nov 06 '15 19:11 Sylix

Any news on a solution to this issue? Thanks

nsolvepaul avatar Nov 09 '15 10:11 nsolvepaul

Hmm, I'm having trouble reproducing this error. I created class libraries (xamaring ios and android). Installing 3.0.5 and the above code (connectionfactory) works fine. Then I upgraded to 3.1.1 and it still compiles. Do you guys know of a way to cleanly reproduce? Edit: Sorry, managed to repro now:) Edit2: Ok, this is weird, now I can't repro any more.

Have you guys tried to simply uninstall/reinstall all the nugets (including the core one). It seems to me like it always works when installing 3.1.1 (not upgrading).

oysteinkrog avatar Nov 09 '15 13:11 oysteinkrog

I've had success removing the previous versions via the NuGet GUI, deleting any folder with 'sqlite' in the packages folder, then adding version 3.1.1 again directly using the NuGet GUI.

tbalcom avatar Nov 09 '15 14:11 tbalcom

My 'fix' was to add the source files directly to the project. Will try tbalcom suggestion

nsolvepaul avatar Nov 09 '15 15:11 nsolvepaul

@tbalcom What is the 'NuGet GUI' you refer to?

nsolvepaul avatar Nov 09 '15 15:11 nsolvepaul

With NuGet we either get the packages using the console (CLI) or Visual Studio (GUI). The GUI is the one you get when you right-click the Solution in Visual Studio and select 'Manage NuGet Packages for Solution'. The CLI is the one you get when you select (Tools > NuGet Package Manager > Package Manager Console).

tbalcom avatar Nov 09 '15 15:11 tbalcom

Thanks, as I only ever use Xamarin Studio I'll try the Nuget console to see if that does something different to using the XS package manager. As removing all, deleting any sql folders in my packages directory did not fix the issue.

nsolvepaul avatar Nov 09 '15 15:11 nsolvepaul

SQLite.Net.Platform not there anymore.

alexrainman avatar Nov 09 '15 20:11 alexrainman

@oysteinkrog I have tried uninstalling all SQLite packages and re-installing them again - Did not resolve the issue.

mgjhl avatar Nov 10 '15 07:11 mgjhl

@mgjhl Did you tried to uninstalling all SQLite packages and reinstalling with this order?

  1. SQLite.Net.Async-PCL
  2. SQLite.Net.Platform.XamarinAndroid

it works, at least in my case

rofiqsetiawan avatar Nov 10 '15 11:11 rofiqsetiawan

I have to do this to work, SQLite.Net.Platform.WinRT.

Working: SQLite.Net.Async PCL 3.0.5 Dependencies: SQLite.Net-PCL

Not working: SQLite.Net.Async PCL 3.1.1 Dependencies: SQLite.Net.Core-PCL

If i install SQLite.Net PCL 3.1.1 (it was a SQLite.Net.Async PCL 3.0.5 dependency), i have SQLite.Net.Platform working again.

I believe SQLite.Net.Platform shoudl be moved from SQLite.Net PCL to SQLite.Net.Core-PCL.

Sylix avatar Nov 10 '15 11:11 Sylix

I had the same issue with SQLite.Net.Platform.XamarinIOS. Uninstalled and reinstalled SQLite.net PCL (which installed SQLite.Net-PCL and SQLite.Net.COre-PCL dlls) and then SQLite.Net.Async PCL (which installed SQLite.Net.Async-PCLdll). That solved it.

jesusgarza avatar Nov 17 '15 18:11 jesusgarza

Any updates on this? I've tried every suggestion and still no SQLite.Net.Platform... Thanks!

drewlederman avatar Dec 02 '15 01:12 drewlederman

Any updates on this? I am trying to use SQLite.Net PCL (3.1.1) in a PCL library created in Visual Studio 2015. NuGet installs the SQLite.NET Core and SQLite.Net PCL but the SQLite.Net.Platform namespace is missing.

econner20 avatar Dec 20 '15 07:12 econner20

It is gone from Nuget... Is there a solution or work around? https://www.nuget.org/packages/SQLite.Net.Platform.XamarinIOS

Manne990 avatar Feb 10 '16 06:02 Manne990

Yes, install the main package, it will add the needed references.

oysteinkrog avatar Feb 10 '16 14:02 oysteinkrog

It still says there's a missing assembly reference when trying to use SQLitePlatform Android and iOS.

This are the packages i'm using. SQLite.Net.Async-PCL 3.1.1 SQLite.Net.Core-PCL 3.1.1

jagl16 avatar Feb 25 '16 23:02 jagl16

jagl16 Install SQLite.Net-PCL too. All the 3 packages.

Sylix avatar Feb 26 '16 12:02 Sylix

Any update?

I am not able to pull down 3.1.1 even after I uninstall in reinstall. I do not get the platform specific packages. Nuget has message on the Xamarin Android and IOS page stating that

The owner has unlisted this package. This could mean that the package is deprecated or shouldn't be used anymore.

https://www.nuget.org/packages/SQLite.Net.Platform.XamarinIOS https://www.nuget.org/packages/SQLite.Net.Platform.XamarinAndroid/

chauncat avatar Jul 15 '16 23:07 chauncat

I just started to use REALM and i am happy with the results.

alexrainman avatar Jul 16 '16 00:07 alexrainman

REALM is still a little to new for us right now.

chauncat avatar Jul 18 '16 15:07 chauncat

I think there is no need for SQLite.Net.Platform.XamarinAndroid and SQLite.Net.Platform.XamarinIOS, just use the sqlite-net-pcl Nuget package... as in detailed in this link : https://developer.xamarin.com/guides/xamarin-forms/working-with/databases/

boubaker-chieb avatar Aug 13 '16 15:08 boubaker-chieb