반응형
Could not deserialize object. Class ~~~~~ does not define a no-argument constructor. If you are using ProGuard, make sure these constructors are not stripped
위와 같은 오류가 날 때 data class를 조금만 변경해주면 쉽게 오류를 해결할 수 있습니다!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class Question( | |
val answer_one : String, | |
val answer_two : String | |
) { | |
constructor() : this("오류가 발생했습니다", "오류가 발생했습니다") | |
} |
이런식으로 constructor을 붙여주시면 쉽게 오류가 해결됩니다!
반응형