Specify the language of the codelab if it is not English:
In which task and step of the codelab can this issue be found?
Step 8
Update MarsApiService and MarsViewModel
Describe the problem
a dependency is missing for the .toMediaType() function
implementation "com.squareup.okhttp3:okhttp:4.7.2"
without it you cannot perform the import and therefore get an error in the .toMediaType()
please add the dependency to the course, i had to look it up
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: https://developer.android.com/codelabs/basic-android-kotlin-compose-getting-data-internet?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-5-pathway-1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-getting-data-internet#7
Specify the language of the codelab if it is not English:
In which task and step of the codelab can this issue be found? Step 8 Update MarsApiService and MarsViewModel
Describe the problem a dependency is missing for the .toMediaType() function implementation "com.squareup.okhttp3:okhttp:4.7.2" without it you cannot perform the import and therefore get an error in the .toMediaType() please add the dependency to the course, i had to look it up
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.