I am getting this error:
error: Each bind variable in the query must have a matching method parameter. Cannot find method parameters for :network.
error: Unused parameter: arg0
when trying Room and Kotlin like this:
@Dao
interface TokenDefinitionDao {
@Query("SELECT * FROM token_descriptors WHERE network LIKE :network")
fun getAllForNetwork(network: String?): List<TokenDescriptor>
@Delete
fun delete(token: TokenDescriptor)
}
But I am passing and using this parameter. Anyone sees what the problem is or can point me to working examples of using Room with Kotlin?