Advertisement
nauk0a

Untitled

Jul 21st, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 1.36 KB | None | 0 0
  1. /Users/rustam/AndroidStudioProjects/Room/app/build/tmp/kapt3/stubs/debug/com/nauka/room/EmployeeWithAddress.java:30: error: Fields annotated with @Relation cannot be constructor parameters. These values are fetched after the object is constructed.
  2.     java.util.List<com.nauka.room.Address> getEmployeeWithAddress) {
  3.                                            ^/Users/rustam/AndroidStudioProjects/Room/app/build/tmp/kapt3/stubs/debug/com/nauka/room/EmployeeWithAddress.java:6: error: Entities and Pojos must have a usable public constructor. You can have an empty constructor or a constructor whose parameters match the fields (by name and type).
  4. public final class EmployeeWithAddress {
  5.              ^
  6.   Tried the following constructors but they failed to match:
  7.   EmployeeWithAddress(com.nauka.room.Employee,java.util.List<com.nauka.room.Address>) -> [param:employee -> matched field:employee, param:getEmployeeWithAddress -> matched field:unmatched]/Users/rustam/AndroidStudioProjects/Room/app/build/tmp/kapt3/stubs/debug/com/nauka/room/EmployeeWithAddress.java:9: error: Cannot find setter for field.
  8.     private final com.nauka.room.Employee employee = null;
  9.                                           ^[WARN] Incremental annotation processing requested, but support is disabled because the following processors are not incremental: androidx.room.RoomProcessor (NON_INCREMENTAL).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement