Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First Android app: Android Basics with Compose #888

Open
markjville opened this issue Oct 24, 2024 · 0 comments
Open

First Android app: Android Basics with Compose #888

markjville opened this issue Oct 24, 2024 · 0 comments

Comments

@markjville
Copy link

markjville commented Oct 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant