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 #888

Open markjville opened 4 weeks ago

markjville commented 4 weeks ago

URL of codelab https://developer.android.com/codelabs/basic-android-kotlin-compose-first-app#4

In which task and step of the codelab can this issue be found?

Step 3. "Delete Box and type Surface() instead." Describe the problem When done as instructed ,"Delete Box and type Surface() instead.", the word "Surface" is red and there is error "Unresolved reference: Surface". The background of the GreetingPreview text is supposed to change, but it doesn't. It seems that these instructions do not work. Does "Surface" need to be replaced with "Scaffold"? For example: Scaffold(containerColor = Color.Cyan)

Steps to reproduce?

  1. Go to step 3 in the URL above
  2. Replace the word "Box" with "Surface"
  3. See error "Unresolved reference: Surface" when one clicks the work Surface.

Versions Android Studio Ladybug | 2024.2.1 Patch 1 Build #AI-242.23339.11.2421.12483815, built on October 10, 2024 Runtime version: 21.0.3+-12282718-b509.11 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Toolkit: sun.awt.X11.XToolkit Linux 6.10.11-200.fc40.x86_64 GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation Memory: 2048M Cores: 16 Registry: ide.experimental.ui=true Current Desktop: GNOME

Screenshot from 2024-10-24 12-22-53

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