SQLitePCL.raw icon indicating copy to clipboard operation
SQLitePCL.raw copied to clipboard

Missing methods with SQLitePCLRaw.bundle_green (Xamarin.Forms UWP, Net standard 2.0)

Open E75 opened this issue 5 years ago • 12 comments

Compiling release builds using SQLitePCLRaw.bundle_green 2.0.2 is broken as it features missing methods.

Errors: afbeelding

Targeting: afbeelding

Note: This is in a Xamarin.Forms UWP C# application with a .NET standard 2.0 target. Building without "Compile with .Net Native tool chain" option seems to be working

E75 avatar Nov 05 '19 13:11 E75

I have a similar issue on Xamarin.android with version 2.0.2. The error we're getting is the following: Method not found: string SQLitePCL.raw.sqlite3_column_name(SQLitePCL.sqlite3_stmt,int)

Unfortunately, this crashes our app on startup.

xanderh avatar Nov 08 '19 12:11 xanderh

I have the same issue with Xamarin.iOS

demogog avatar Nov 11 '19 11:11 demogog

@xanderh The original problem at the top of this issue is very specific to UWP. Your Android problem may be similar, but it cannot be the same. Please open a new issue and include full details.

ericsink avatar Nov 11 '19 15:11 ericsink

@demogog The original problem at the top of this issue is very specific to UWP. Your iOS problem may be similar, but it cannot be the same. Please open a new issue and include full details.

ericsink avatar Nov 11 '19 15:11 ericsink

@ericsink any updates about the UWP issue?

E75 avatar Nov 19 '19 12:11 E75

@E75 I can't reproduce the problem. My UWP test project builds in release mode with 2.0.2 with no errors. I tried various combinations of Min and Target version, including the exact settings you showed above, and it works for me.

ericsink avatar Nov 19 '19 15:11 ericsink

@E75 we have resolved our iOS issue by triple-checking the package version. As it turned out, SQLitePCLRaw.Core and SQLitePCLRaw.bundle_green were updated from 1.1.13 to 2.0.2 in one of the projects. We ended up removing all sqlite packages from all projects and installed sqlite-net-pcl package version 1.6.292 again. And it installed all the required dependencies in with the correct versions.

demogog avatar Nov 25 '19 09:11 demogog

@ericsink I'm using the following packages:

<PackageReference Include="akavache">
  <Version>6.9.10</Version>
</PackageReference>
<PackageReference Include="Microsoft.AppCenter">
  <Version>2.6.2</Version>
</PackageReference>
<PackageReference Include="Microsoft.AppCenter.Analytics">
  <Version>2.6.2</Version>
</PackageReference>
<PackageReference Include="Microsoft.AppCenter.Crashes">
  <Version>2.6.2</Version>
<PackageReference Include="SQLitePCLRaw.bundle_green">
  <Version>2.0.2</Version>
  <ExcludeAssets>All</ExcludeAssets>
</PackageReference>
<PackageReference Include="Newtonsoft.Json">
  <Version>12.0.3</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms" Version="4.1.0.778454" />
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.9" />

Maybe the Akavache version 6.9.10 and AppCenter SDK components cause this problem?

E75 avatar Dec 11 '19 08:12 E75

Yes. AppCenter currently uses SQLitePCLRaw 1.x, and is therefore incompatible with SQLitePCLRaw 2.0. I've been told they're working on a fix.

ericsink avatar Dec 11 '19 14:12 ericsink

@ericsink okey, thanks :). is there no temporary solution that I can use it for now?

E75 avatar Dec 11 '19 15:12 E75

There is a mention of a possible workaround in aspnet/EntityFrameworkCore#19156, but I have not tried it myself.

ericsink avatar Dec 11 '19 15:12 ericsink

@ericsink nope doesn't work. I removed the AppCenter SDK from UWP app, but without success :( This is really a mess..

E75 avatar Dec 13 '19 08:12 E75

Closing old/stale issue.

ericsink avatar Sep 22 '22 23:09 ericsink