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

Apache License 2.0
125 stars 96 forks source link

First Android app: Android Basics with Compose #817

Open sjs851009 opened 3 months ago

sjs851009 commented 3 months ago

URL of codelab [5. Change the background color] 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?

  1. Delete Box and type Surface() instead.

Describe the problem In MainActivity.kt of updated template of new version of Android Studio (Koala | 2024.1.1 Patch 2), there isn't imported Surface(). Instead there is Scaffold().