Room kotlin: Entities and Pojos must have a usable public constructor. Stuck on this error
Well it says they shouldn't be constructor parameters, so try making them not constructor parameters.
class TaskModel() {
@Embedded
lateinit var taskTable: TaskTable
@Relation(parentColumn = "id",
entityColumn = "taskId")
lateinit var subTaskTable: List<SubTaskTable>
}