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
72 stars 66 forks source link

Get Data from the Internet #94

Open CheoR opened 1 year ago

CheoR commented 1 year ago

URL of codelab: Parse the JSON response with kotlinx.serialization

Specify the language of the codelab if it is not English:

In which task and step of the codelab can this issue be found? Implement the Mars Photo data class

Describe the problem

Instructions state to create MarsPhoto.kt data class file in the network directory, however in the final code solution, MarsPhoto.kt is found in the model directory.

Either update instructions to create MarsPhoto.kt in the model directory or update repo-starter branch to reflect current project structure.


1. Right-click on the network package and select New > Kotlin File/Class.
2. In the dialog, select Class and enter MarsPhoto as the name of the class. This action creates a new file called MarsPhoto.kt in the network package.
...

Versions Android Studio version: API version of the emulator:

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

image