I use SQLiteConnection.Find() method. works fine in editor(windows). Can get the all from db file.
When I built apk. and run at android. I got error like this.
Error and callstack from unity:
Exception: NullReferenceException: Object reference not set to an instance of an object
SqlCipher4Unity3D.TableQuery1[T].CompileExpr (System.Linq.Expressions.Expression expr, System.Collections.Generic.List1[T] queryArgs) (at <1c14786c7c7f40dcafd3914ea4c2c6b9>:0)
SqlCipher4Unity3D.TableQuery1[T].CompileExpr (System.Linq.Expressions.Expression expr, System.Collections.Generic.List1[T] queryArgs) (at <1c14786c7c7f40dcafd3914ea4c2c6b9>:0)
SqlCipher4Unity3D.TableQuery1[T].GenerateCommand (System.String selectionList) (at <1c14786c7c7f40dcafd3914ea4c2c6b9>:0) SqlCipher4Unity3D.TableQuery1[T].ToList () (at <1c14786c7c7f40dcafd3914ea4c2c6b9>:0)
SqlCipher4Unity3D.TableQuery1[T].FirstOrDefault () (at <1c14786c7c7f40dcafd3914ea4c2c6b9>:0) SqlCipher4Unity3D.SQLiteConnection.Find[T] (System.Linq.Expressions.Expression1[TDelegate] predicate) (at <1c14786c7c7f40dcafd3914ea4c2c6b9>:0)
I use SQLiteConnection.Find() method. works fine in editor(windows). Can get the all from db file.
When I built apk. and run at android. I got error like this.
Error and callstack from unity: Exception: NullReferenceException: Object reference not set to an instance of an object SqlCipher4Unity3D.TableQuery
1[T].CompileExpr (System.Linq.Expressions.Expression expr, System.Collections.Generic.List
1[T] queryArgs) (at <1c14786c7c7f40dcafd3914ea4c2c6b9>:0) SqlCipher4Unity3D.TableQuery1[T].CompileExpr (System.Linq.Expressions.Expression expr, System.Collections.Generic.List
1[T] queryArgs) (at <1c14786c7c7f40dcafd3914ea4c2c6b9>:0) SqlCipher4Unity3D.TableQuery1[T].GenerateCommand (System.String selectionList) (at <1c14786c7c7f40dcafd3914ea4c2c6b9>:0) SqlCipher4Unity3D.TableQuery
1[T].ToList () (at <1c14786c7c7f40dcafd3914ea4c2c6b9>:0) SqlCipher4Unity3D.TableQuery1[T].FirstOrDefault () (at <1c14786c7c7f40dcafd3914ea4c2c6b9>:0) SqlCipher4Unity3D.SQLiteConnection.Find[T] (System.Linq.Expressions.Expression
1[TDelegate] predicate) (at <1c14786c7c7f40dcafd3914ea4c2c6b9>:0)