Kotlin Room Cannot find getter for field

424 Views Asked by At

Task :app:kaptDebugKotlin FAILED E:\MobileProjects\NewsApp\app\build\tmp\kapt3\stubs\debug\com\appops\newsapp\models\Article.java:10: error: Cannot find getter for field. private java.lang.Integer id; [WARN] Incremental annotation processing requested, but support is disabled because the following processors are not incremental: androidx.room.RoomProcessor (DYNAMIC). ^ FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:kaptDebugKotlin'.

A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution java.lang.reflect.InvocationTargetException (no error message)

error image

please help me

1

There are 1 best solutions below

1
On BEST ANSWER

For Turkish system language: absurdly, the getter of properties starting with the letter "i" is not produced. eg change name to "uid" instead of "id"