Gson 报错,报错信息
onFailure======java.lang.NoSuchMethodError:
No virtual method newJsonReader(Ljava/io/Reader;)Lcom/google/gson/stream/JsonReader; in class Lcom/google/gson/Gson; or its super classes (declaration of 'com.google.gson.Gson' appears in /data/app/com.goach.client-1/base.apk)
使用Gson 2.6版本即可解决
New setLenient()
method on GsonBuilder
. This setting impacts the new factory methodGson.newJsonReader()
.新版本的方法有改动引起。
http://www.oschina.net/news/70675/gson-2-6-1
http://stackoverflow.com/questions/36211510/not-able-to-resolve-java-lang-nosuchmethoderror-with-gson-library 是同样的问题