daily-story
[Error] simplefrmework ValueRequiredException
프로그래밍/Android 2016. 1. 11. 23:55

retrofit (simple) xml convert 사용시 아래 오류가 발생. org.simpleframework.xml.core.ValueRequiredException : Unable to satisfy @org.simpleframework.xml.ElementList(data=false, empty=true, entry=, inline=false, name=, required=true, type=void) on field 'juso' ... 해결방법은 아래와 같다. 366 1 10 0 정상 이런 형식으로 이루어진 xml인데 juso 노드의 경우 검색결과가 존재하지 않을 경우 값이 넘어오지 않는다. 그러므로 아래와 같이 작성해야 한다. @Root(name="results") public class ..