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

Apache License 2.0
102 stars 81 forks source link

First Android app: Android Basics with Compose #716

Open Tschukedi opened 1 month ago

Tschukedi commented 1 month 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? 2.3. Delete Box and type Surface() instead.

Describe the problem Screenshot 2024-06-02 110515 Screenshot 2024-06-02 110500

Text is underlined red, it seams the tutorial does not describe this part.

Steps to reproduce?

  1. Do the tutorial shown in the URL

Versions Android Studio version: Android Studio Jellyfish | 2023.3.1 Patch 1 Build #AI-233.14808.21.2331.11842104, built on May 15, 2024 Runtime version: 17.0.10+0--11572160 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 11.0 GC: G1 Young Generation, G1 Old Generation Memory: 3986M Cores: 16 Registry: debugger.new.tool.window.layout=true ide.experimental.ui=true

API version of the emulator:
How do I check this?

Additional information Did that!

Tschukedi commented 1 month ago

This import will make the error message disappear: import androidx.compose.material3.Surface

Also Greeting was red underlined and now not anymore

aarchish commented 3 weeks ago

Part 5 of the tutorial lower on the page they ask you to create the GreetingText function. I'm having an issue after that where the ask to create sub function Text.

image