Specify the language of the codelab if it is not English:
In which task and step of the codelab can this issue be found?
Task 8 - Step Update MarsApiService and MarsViewModel
Describe the problem
Line to be updated: .addConverterFactory(Json.asConverterFactory("application/json".toMediaType()))
Update to .addConverterFactory(Json.asConverterFactory(MediaType.get("application/json")))
Steps to reproduce?
Go to...
Click on...
See error...
VersionsAndroid Studio version:API version of the emulator:
Additional informationInclude screenshots if they would be useful in clarifying the problem.
URL of codelab:
Specify the language of the codelab if it is not English:
In which task and step of the codelab can this issue be found? Task 8 - Step Update MarsApiService and MarsViewModel
Describe the problem Line to be updated: .addConverterFactory(Json.asConverterFactory("application/json".toMediaType())) Update to .addConverterFactory(Json.asConverterFactory(MediaType.get("application/json")))
Steps to reproduce?
Versions Android Studio version: API version of the emulator:
Additional information Include screenshots if they would be useful in clarifying the problem.