Avatar ·

No Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator) in Kotlin with Jackson and Retrofit

Hello everyone! I'm new to Kotlin and Android development. I'm writing an app that receives data from a server via Retrofit and Jackson. I have a data class for the API response: ```kotlin data class UserResponse( val id: Int, val name: String, val email: String ) ``` And a Retrofit interface: ```kotlin interface ApiService { @GET("users/{id}") suspend fun getUser(@Path("id") userId: Int): UserResponse } ``` In `MainActivity` I make a request: ```kotlin lifecycleScope.launch { val response = apiService.getUser(1) textView.text = response.name } ``` But the app crashes with an error: ``` com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.example.app.UserResponse` (no Creators, like default co ```