In which task and step of the codelab can this issue be found?
Create your first Android app: Change the background color
Describe the problem
The codelab instructs the reader to "Delete Box and type Surface()", but surface isn't imported yet, so this symbol won't be resolved. The instructions go on to explain how to resolve the symbol Color, but no mention is made about resolving the symbol Surface. By looking at the list of imports in the codelab, one could surmise that they need to add the Surface import, but that could be easily missed by novice programmers.
Steps to reproduce?
Follow the steps of Create your first Android app
In the step about Changing the background color, go until it tells you to change "Box" to "Surface()"
See the "Surface" symbol not resolve.
VersionsAndroid Studio version: Ladybug | 2024.2.1 Patch 1
API version of the emulator:
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?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? Create your first Android app: Change the background color
Describe the problem The codelab instructs the reader to "Delete Box and type Surface()", but surface isn't imported yet, so this symbol won't be resolved. The instructions go on to explain how to resolve the symbol
Color
, but no mention is made about resolving the symbolSurface
. By looking at the list of imports in the codelab, one could surmise that they need to add theSurface
import, but that could be easily missed by novice programmers.Steps to reproduce?
Versions Android Studio version: Ladybug | 2024.2.1 Patch 1 API version of the emulator:
Additional information Include screenshots if they would be useful in clarifying the problem.