https://kotlinlang.org logo
t

the_mafia

04/20/2016, 12:52 PM
Hi! Can you help me? I try to use Anko + SQLite Create table: db.createTable("my_table", true, "_id" to INTEGER + PRIMARY_KEY + UNIQUE, "lat" to REAL, "long" to REAL, "radius" to INTEGER ) I have the class
class Location(val _id: Int, val lat: Double, val long: Double, val radius: Int)
When i try
val rowParser = classParser<Location>()
return instance!!.writableDatabase.select("my_table", "_id", "lat", "long", "radius").parseList(rowParser)
i have exception
Can't initialize object parser for ....Location no acceptable constructors found