Skip to content

[One.NET] see if sqlite-net-pcl can work in .NET 6 #5319

Closed
@jonathanpeppers

Description

@jonathanpeppers

In 6e3e383, I disabled parts of this test:

https://github.com/xamarin/xamarin-android/blob/6e3e3831afa958ab8126e268f7a128321f75dbd6/tests/MSBuildDeviceIntegration/Tests/InstallAndRunTests.cs#L336-L348

The app crashes with:

11-19 16:14:40.293 29999 29999 E AndroidRuntime: android.runtime.JavaProxyThrowable: System.TypeInitializationException: The type initializer for 'SQLite.SQLiteConnection' threw an exception.
11-19 16:14:40.293 29999 29999 E AndroidRuntime:  ---> System.DllNotFoundException: e_sqlite3
11-19 16:14:40.293 29999 29999 E AndroidRuntime:    at System.Runtime.InteropServices.NativeLibrary.LoadLibraryByName(String libraryName, Assembly assembly, Nullable`1 searchPath, Boolean throwOnError)
11-19 16:14:40.293 29999 29999 E AndroidRuntime:    at System.Runtime.InteropServices.NativeLibrary.Load(String libraryName, Assembly assembly, Nullable`1 searchPath)
11-19 16:14:40.293 29999 29999 E AndroidRuntime:    at SQLitePCL.NativeLibrary.Load(String libraryName, Assembly assy, Int32 flags)
11-19 16:14:40.293 29999 29999 E AndroidRuntime:    at SQLitePCL.Batteries_V2.MakeDynamic(String name, Int32 flags)
11-19 16:14:40.293 29999 29999 E AndroidRuntime:    at SQLitePCL.Batteries_V2.DoDynamic_cdecl(String name, Int32 flags)
11-19 16:14:40.293 29999 29999 E AndroidRuntime:    at SQLitePCL.Batteries_V2.Init()
11-19 16:14:40.293 29999 29999 E AndroidRuntime:    at SQLite.SQLiteConnection..cctor()

Investigate what the actual problem is here, and enable this test if we can. The .apk does not contain a libe_sqlite3.so

Metadata

Metadata

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions