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?
Go to step 3 in the URL above
Replace the word "Box" with "Surface"
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
Additional informationInclude screenshots if they would be useful in clarifying the problem.
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?
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
Additional information Include screenshots if they would be useful in clarifying the problem.