com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected an int but was STRING
程序员文章站
2022-04-28 09:31:04
...
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected an int but was STRING at line 1 column 144。
报错原因是因为:输入的数据类型要求是int,但是你输入的String,然后gson解析时发生错误。