생성자가 정의되지 않아서 생기는 문제였습니다.
아래와 같이 인수와 피라미터가 없는 생성자를 추가해주면 해결됩니다.
public BoardModel() { // 새로추가
}
public BoardModel(String title, String content, String uid, String time) {
this.title = title;
this.content = content;
this.uid = uid;
this.time = time;
}
관련 링크 : https://stackoverflow.com/questions/47706601/users-does-not-define-no-argument-constructor
'안드로이드' 카테고리의 다른 글
User does not have permission to access this object (0) | 2022.09.06 |
---|---|
com.google.firebase.database.DatabaseException: No properties to serialize found on class (1) | 2022.09.06 |
Fragment (0) | 2022.08.23 |
One or more issues found when checking AAR metadata values: (0) | 2022.08.23 |