摘要:
Gson registerTypeAdapter XXX class ,if u want serialize XXX class instance will crash.For example:gsonBuilder.registerTypeAdapter(Anima.class, new AnimaAdapter());//Anima is a normal class,and it's have some subclass //when u serialize Anima class instance ,will crash.//so u must serialize Anima 阅读全文