Forum Xamarin.Forms

Xamarin Forms - Sqlite android O runtime.JavaProxyThrowable

GerasimosAlexiouGerasimosAlexiou GRMember ✭✭
edited September 2017 in Xamarin.Forms

I am using Xamarin Forms latest version and Sqlite and I can run my application on an android 6 emulator with vs emulator for android, but when i deploy it to my device that runs Android O I get an Exception. iOs and Uwp work normally.
The packages I use for sqlite are:

SQLite.Net.Async-PCL
SQLite.Net.Core-PCL
SQLite.Net-PCL

Any ideas?

android.runtime.JavaProxyThrowable: at (wrapper managed-to-native) SQLite.Net.Platform.XamarinAndroid.SQLiteApiAndroidInternal:sqlite3_open_v2 (byte[],intptr&,int,intptr)
at SQLite.Net.Platform.XamarinAndroid.SQLiteApiAndroid.Open (System.Byte[] filename, SQLite.Net.Interop.IDbHandle& db, System.Int32 flags, System.IntPtr zvfs) [0x00000] in <8dbf6ff85082469fb9d4dfaa9eae6b69>:0
at SQLite.Net.SQLiteConnection..ctor (SQLite.Net.Interop.ISQLitePlatform sqlitePlatform, System.String databasePath, SQLite.Net.Interop.SQLiteOpenFlags openFlags, System.Boolean storeDateTimeAsTicks, SQLite.Net.IBlobSerializer serializer, System.Collections.Generic.IDictionary`2[TKey,TValue] tableMappings, System.Collections.Generic.IDictionary`2[TKey,TValue] extraTypeMappings, SQLite.Net.IContractResolver resolver) [0x000a2] in <8f2bb39aeff94a30a8628064be9c7efe>:0
at SQLite.Net.SQLiteConnectionWithLock..ctor (SQLite.Net.Interop.ISQLitePlatform sqlitePlatform, SQLite.Net.SQLiteConnectionString connectionString, System.Collections.Generic.IDictionary`2[TKey,TValue] tableMappings, System.Collections.Generic.IDictionary`2[TKey,TValue] extraTypeMappings) [0x0002e] in <8f2bb39aeff94a30a8628064be9c7efe>:0
at eventizr.Models.Database+<>c__DisplayClass1_0.<.ctor>b__0 () [0x0001d] in <7df232f34ab8474d9153e3809af4eda8>:0
at SQLite.Net.Async.SQLiteAsyncConnection.GetConnection () [0x00000] in <563d605f9f014eeeb32fd4a27b4d142e>:0
at SQLite.Net.Async.SQLiteAsyncConnection+<>c__DisplayClass11_0.<CreateTablesAsync>b__0 () [0x00006] in <563d605f9f014eeeb32fd4a27b4d142e>:0
at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x0000f] in <f92efd36382944ce84c4297b93778620>:0
at System.Threading.Tasks.Task.Execute () [0x00010] in <f92efd36382944ce84c4297b93778620>:0
  at mono.java.lang.RunnableImplementor.n_run (Native Method)
  at mono.java.lang.RunnableImplementor.run (RunnableImplementor.java:30)
  at android.os.Handler.handleCallback (Handler.java:789)
  at android.os.Handler.dispatchMessage (Handler.java:98)
  at android.os.Looper.loop (Looper.java:164)
  at android.app.ActivityThread.main (ActivityThread.java:6541)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:240)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:767)
Sign In or Register to comment.