google-developer-training / basic-android-kotlin-compose-training-mars-photos

Solution code for Android Basics in Kotlin course
https://developer.android.com/courses/android-basics-kotlin/course?gclid=CjwKCAjw4c-ZBhAEEiwAZ105RTyT-iaLHzrhMBUXdMhO230ZDwOwxxI2x4RgK8DwBxK8t1h0wmU_QxoCi4YQAvD_BwE
Apache License 2.0
66 stars 58 forks source link

Get Data from the Internet #16

Closed kimberleycomputer closed 1 year ago

kimberleycomputer commented 1 year ago

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?

  1. Go to...
  2. Click on...
  3. See error...

Versions Android Studio version: API version of the emulator:

Additional information Include screenshots if they would be useful in clarifying the problem.

kimberleycomputer commented 1 year ago

Closed - duplicate issue