2
0

More than 1 year has passed since last update.

[Android]java.lang.IllegalArgumentException: Unable to create converter for class com.jp...のエラーの解決方法

Posted at

エラー:java.lang.IllegalArgumentException: Unable to create converter for class com.jp...

解決:.addConverterFactory(GsonConverterFactory.create()) がないとだめ上記エラーが出る

 val retrofit = Retrofit.Builder().baseUrl("http://~~~~")
                               .addConverterFactory(GsonConverterFactory.create())
                               .build()
implementation( "com.squareup.retrofit2:converter-gson:2.3.0")

これを入れると GsonConverterFactoryがimportできるようになる

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0