
报错信息
1 |
Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $ |
报错原因
- GsonConverterFactory使用时需要返回规范的JSON,而服务端没有按照标准返回。
解决办法
1 |
static Retrofit getClient() { |

1 |
Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $ |
1 |
static Retrofit getClient() { |
近期评论