Android Room library error: Cannot find getter for field

Instead of

public Long getId() {
    return fie_id;
}

public void setId(Long id) {
    this.fie_id = id;
}

Do

public Long getFie_id() {
    return fie_id;
}

public void setFie_id(Long fie_id) {
    this.fie_id = fie_id;
}

Maybe you don't believe me but i have to say. I am using Mac and that problem was about the Computer Language. I was using Turkish Language and i have changed to English and that problem was gone after Invalidate Cache and Restart.

As summary:

  • Set MacOSX language as English (SystemPreferences -> Language & Region)
  • Open Android Studio and Perform Invalidate Caches And Restart (File -> Invalidate Caches/Restart -> Invalidate and Restart)

Tags:

Java

Android