Retrofitを使用して発生した問題(更新対象)

477 ワード

  • Gson compile 'com.squareup.retrofit2:converter-gson:2.2.0'にはすでにGson相関が含まれているため、反復依存compile 'com.google.code.gson:gson:x.x.x'の反復依存は不要であり、Retrofit 2.0で用いるGsonバージョンよりも依存バージョンが低いと
  • となる.
    @Override
    public void onFailure(Call>> call
            , Throwable t) {
        Log.d("failure", t.getMessage());
    }
    

    印刷内容がD/failure: com.google.gson.Gson.newJsonReaderのエラー