To Reproduce
Steps to reproduce the behavior:
- Add retrofit converter version
1.3.2
- Add these classes
data class JobsWrapper(
@Selector(".conference-list li")
val jobs: List<Job>? = null
)
@Entity(tableName = "jobs")
data class Job(
@Selector("li .open-trigger strong")
val title: String? = null,
@Selector("li .open-trigger small")
val location: String? = null,
@Selector("li p.hidden")
val description: String? = null,
@PrimaryKey
@Selector("li a")
val url: String = ""
)
- Add converter to retrofit
@Provides
@Singleton
fun provideHtmlRetrofit(okHttpClient: OkHttpClient): Retrofit {
return Retrofit.Builder()
.baseUrl(BuildConfig.JOBS_BASE_URL)
.client(okHttpClient)
.addConverterFactory(JspoonConverterFactory.create())
.build()
}
- Add GET method to service interface
@GET("jobs")
suspend fun getAllJobs(): JobsWrapper
Expected behavior
Converter created successfully and everything working fine.
Actual behavior
java.lang.IllegalArgumentException: Unable to create converter for class net.androidweekly.data.models.jobs.JobsWrapper
for method RemoteJobsDao.getAllJobs
I have tried to use version 1.0.0 it's working fine but the problem with 1.3.2
Retrofit version: 2.7.0
To Reproduce
Steps to reproduce the behavior:
1.3.2Expected behavior
Converter created successfully and everything working fine.
Actual behavior
I have tried to use version
1.0.0it's working fine but the problem with1.3.2Retrofit version: 2.7.0