Base on my previous question (Android Persistence room: "Cannot figure out how to read this field from a cursor") which I got to work thanks the feedback, I implemente
try changing your query @Query("SELECT * FROM pet WHERE id IN (:p0)")
to
@Query("SELECT * FROM pet WHERE id IN (:petIds)")
There was an issue between kotlin and Room lib, Kotlin wasn't preserving the actual parameter names of the arguments properly, so (:p0)/(:arg0) was work around that, its resolved now.
I hope this will resolve the issue