google-developer-training / basic-android-kotlin-compose-birthday-card-app

Apache License 2.0
125 stars 95 forks source link

First Android app: Android Basics with Compose #892

Open quixoticdicker opened 3 weeks ago

quixoticdicker commented 3 weeks ago

URL of codelab https://developer.android.com/codelabs/basic-android-kotlin-compose-first-app?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-1-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-first-app#4

In which task and step of the codelab can this issue be found? Create your first Android app: Change the background color

Describe the problem The codelab instructs the reader to "Delete Box and type Surface()", but surface isn't imported yet, so this symbol won't be resolved. The instructions go on to explain how to resolve the symbol Color, but no mention is made about resolving the symbol Surface. By looking at the list of imports in the codelab, one could surmise that they need to add the Surface import, but that could be easily missed by novice programmers.

Steps to reproduce?

  1. Follow the steps of Create your first Android app
  2. In the step about Changing the background color, go until it tells you to change "Box" to "Surface()"
  3. See the "Surface" symbol not resolve.

Versions Android Studio version: Ladybug | 2024.2.1 Patch 1 API version of the emulator:

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