URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-compose-build-a-dice-roller-app?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-2-pathway-2%3Fhl%3Den%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-build-a-dice-roller-app&hl=en#2
In which task and step of the codelab can this issue be found?
Step 3
Describe the problem
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
DiceRollerTheme {
DiceRollerApp()
}
}
}
I had to add 'enableEdgeToEdge()' before 'setContent' to resolve the compiler error.
However, error vanished even when I commented out 'enableEdgeToEdge' !!!
Steps to reproduce?
- Go to...
- Click on...
- See error...
Versions
Android Studio version: Otter 2 Feature Drop 2025.2.2 Patch 1
API version of the emulator:
Additional information
Include screenshots if they would be useful in clarifying the problem.
URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-compose-build-a-dice-roller-app?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-2-pathway-2%3Fhl%3Den%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-build-a-dice-roller-app&hl=en#2
In which task and step of the codelab can this issue be found?
Step 3
Describe the problem
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
DiceRollerTheme {
DiceRollerApp()
}
}
}
I had to add 'enableEdgeToEdge()' before 'setContent' to resolve the compiler error.
However, error vanished even when I commented out 'enableEdgeToEdge' !!!
Steps to reproduce?
Versions
Android Studio version: Otter 2 Feature Drop 2025.2.2 Patch 1
API version of the emulator:
Additional information
Include screenshots if they would be useful in clarifying the problem.