Hmm, noob Kotlin Question in Android context: How ...
# android
j
Hmm, noob Kotlin Question in Android context: How do I write the Room RawQuery annotation in Kotlin (shown here: https://developer.android.com/reference/androidx/room/RawQuery.html )? Java code is:
Copy code
@RawQuery(observedEntities = Song.class)
   LiveData<List<Song>> getSongs(SupportSQLiteQuery query);
but Kotlin:
Copy code
@RawQuery(observedEntities = Tactic::class.java)
does not compile: “An annotation argument must be a compile-time constant”