-
Type: Task
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
Goal
Compile project
Actual Results
error: Field "status" of type "UserStatus" is not supported.
Steps & Code to Reproduce
Realm class:
@RealmClass open class AppUserRealm : RealmModel, ConvertableToModel<AppUserModel> { ... private var statusStr: String = UserStatus.ACTIVE.name @Ignore var status: UserStatus = UserStatus.ACTIVE get() = RealmUtils.enumValueOf(field, statusStr)!! set(value) { field = value statusStr = value.name } ... }
UserStatus is an enum.
Error happens in time of kapt processing.
Gradle file plugins block:
plugins { id "com.android.library" id "kotlin-android" id "kotlin-android-extensions" id "kotlin-kapt" id "realm-android" }
Version of Realm and tooling
Realm version(s): 5.8.0
Realm Sync feature enabled: No
Android Studio version: 3.2.1
Android Build Tools version: 28.0.3
Gradle version: 4.10.1
Which Android version and device(s): all