oysteinkrog / SQLite.Net-PCL

Simple, powerful, cross-platform SQLite client and ORM - Updated version with PCL support
MIT License
353 stars 162 forks source link

SQLiteApiAndroid.Open(System.Byte[] filename, SQLite.Net.Interop.IDbHandle& db, System.Int32 flags, System.IntPtr zvfs) #363

Open haohighview opened 7 years ago

haohighview commented 7 years ago

Xamarin caused by: android.runtime.JavaProxyThrowable: System.DllNotFoundException: esqlite3 SQLite.Net.Platform.XamarinAndroid.SQLiteApiAndroidInternal.sqlite3_open_v2(byte[], ref intptr, int, intptr)(wrapper managed-to-native) SQLite.Net.Platform.XamarinAndroid.SQLiteApiAndroid.Open(byte[] filename, ref IDbHandle db, int flags, IntPtr zvfs)<0ce118559d8944d1942b16ca667c2567>:0 SQLite.Net.SQLiteConnection.SQLiteConnection(ISQLitePlatform sqlitePlatform, string databasePath, SQLiteOpenFlags openFlags, bool storeDateTimeAsTicks, IBlobSerializer serializer, IDictionary<TKey, TValue> tableMappings, IDictionary<TKey, TValue> extraTypeMappings, IContractResolver resolver) SQLite.Net.SQLiteConnectionWithLock.SQLiteConnectionWithLock(ISQLitePlatform sqlitePlatform, SQLiteConnectionString connectionString, IDictionary<TKey, TValue> tableMappings, IDictionary<TKey, TValue> extraTypeMappings) AppBoundlss.Android.Services.AndroidPlatformService.GetConnectionWithLock(string databasePath) AppBoundlss.PCL.SqliteHelper.get_ConnectionWithLock() AppBoundlss.PCL.SqliteHelper.get_AsyncConnection() AppBoundlss.PCL.App.Initialize() MvvmCross.Core.Platform.MvxSetup.CreateAndInitializeApp(IMvxPluginManager pluginManager) MvvmCross.Core.Platform.MvxSetup.InitializeApp(IMvxPluginManager pluginManager) MvvmCross.Core.Platform.MvxSetup.InitializeSecondary() MvvmCross.Droid.Platform.MvxAndroidSetupSingleton.b__7_0(object ignored) System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(object state) System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, object state, bool preserveSyncCtx) System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() System.Threading.ThreadPoolWorkQueue.Dispatch()<7391fe8b2ccf45bc8695ad58f2fc302f>:0 System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

minafaw commented 7 years ago

I have the same issue did you figure why this happen

Xamarin caused by: android.runtime.JavaProxyThrowable: System.DllNotFoundException: /system/lib64/libsqlite.so SQLite.Net.Platform.XamarinAndroid.SQLiteApiAndroidInternal.sqlite3_open_v2(byte[], ref intptr, int, intptr)(wrapper managed-to-native) SQLite.Net.Platform.XamarinAndroid.SQLiteApiAndroid.Open(byte[] filename, ref IDbHandle db, int flags, IntPtr zvfs)<8dbf6ff85082469fb9d4dfaa9eae6b69>:0 SQLite.Net.SQLiteConnection.SQLiteConnection(ISQLitePlatform sqlitePlatform, string databasePath, SQLiteOpenFlags openFlags, bool storeDateTimeAsTicks, IBlobSerializer serializer, IDictionary<TKey, TValue> tableMappings, IDictionary<TKey, TValue> extraTypeMappings, IContractResolver resolver)<8f2bb39aeff94a30a8628064be9c7efe>:0 SQLite.Net.SQLiteConnection.SQLiteConnection(ISQLitePlatform sqlitePlatform, string databasePath, bool storeDateTimeAsTicks, IBlobSerializer serializer, IDictionary<TKey, TValue> tableMappings, IDictionary<TKey, TValue> extraTypeMappings, IContractResolver resolver)<8f2bb39aeff94a30a8628064be9c7efe>:0 CrewBriefingForms.Droid.CrewBriefingDB_Android.GetConnection() CrewBriefingForms.Database.DB_PCL.DropDatabase() CrewBriefingForms.LoginPage.d4.MoveNext() Android.App.SyncContext.<>cDisplayClass2_0.b__0():0 Java.Lang.Thread.RunnableImplementor.Run():0 Java.Lang.IRunnableInvoker.n_Run(IntPtr jnienv, IntPtr native__this):0 at (wrapper dynamic-method) System.Object:ec3bbe43-9dc1-42c7-a62e-de6cd3baa963 (intptr,intptr) mono.java.lang.RunnableImplementor.n_run(Native Method) mono.java.lang.RunnableImplementor.run()RunnableImplementor.java:30 android.os.Handler.handleCallback()Handler.java:751 android.os.Handler.dispatchMessage()Handler.java:95 android.os.Looper.loop()Looper.java:154 android.app.ActivityThread.main()ActivityThread.java:6682 java.lang.reflect.Method.invoke(Native Method) com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run()ZygoteInit.java:1520 com.android.internal.os.ZygoteInit.main()ZygoteInit.java:1410