You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val tlThemeResourceEntity = TLThemeResourceEntity()
tlThemeResourceEntity.id=123L
Gradle:
// https://mvnrepository.com/artifact/io.requery/requery https://github.com/requery/requery
// final def requery_version = "1.6.1" // can't use this for some reason (something with error: Element "id" is read-only but has setter (Kotlin: change var to val))
final def requery_version = "1.5.1"
implementation "io.requery:requery:$requery_version"
implementation "io.requery:requery-kotlin:$requery_version"
implementation "io.requery:requery-android:$requery_version"
// https://mvnrepository.com/artifact/io.requery/requery-processor
kapt "io.requery:requery-processor:$requery_version"
On 1.5.1, it works fine. Once I use 1.6.1, it wants me to change it to val, but then I can't change it.
The error:
C:\Users\User\Desktop\MyApplication3\app\build\tmp\kapt3\stubs\debug\com\example\myapplication\TLThemeResource.java:11: error: Element "id" is read-only but has setter (Kotlin: change var to val)
public abstract long getId();
For some reason, once I update, it complains about that I can't set one of the fields, but I do need to set the field:
Usage:
Gradle:
On 1.5.1, it works fine. Once I use 1.6.1, it wants me to change it to val, but then I can't change it.
The error:
Attached sample here:
My Application.zip
The text was updated successfully, but these errors were encountered: