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

Open Yoshikidyoshiki opened 4 weeks ago

Yoshikidyoshiki commented 4 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? Change the backgournd color

Describe the problem I followed the instruction step by step, but Android Studio said 'Surface' was unresolved. So, I went back and forth and realized in the orinigal 'import' lacks 'import androidx.compose.material3.Surface'. Mine: Android Studio Jellyfish | 2023.3.1 Patch 1,

notes I'm a totally biginner and I've just made my account here only to report this. I mean, I've never read a line of instruction about the conventions of this community. Thanx.

aarchish commented 3 weeks ago

I found a simple solution for this.. Whenever you see dependency missing... hover over to the error.. there will be a suggested prompt to import the dependency with alt+enter