Open Richard5A opened 7 months ago
Edit build.gradle.kts - App level:
From
implementation("androidx.compose.material3:material3")
to:
implementation("androidx.compose.material3:material3:1.1.1")
Edit build.gradle.kts - Project level
from:
id("com.android.application") version "8.0.2" apply false id("com.android.library") version "8.0.2" apply false
to:
id("com.android.application") version "8.2.0" apply false id("com.android.library") version "8.2.0" apply false
Add anotation: @OptIn(ExperimentalMaterial3Api::class)
at Compose function WoofTopAppBar like this:
@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun WoofTopAppBar(modifier: Modifier = Modifier)
URL of codelab https://developer.android.com/codelabs/basic-android-kotlin-compose-woof-animation?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-3-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-woof-animation#1
In which task and step of the codelab can this issue be found? Building the Code.
Describe the problem In line 122
is an Error, that you need a
@OptIn(ExperimentalMaterial3Api::class)
Steps to reproduce?
Versions Android Studio version: 2023.2.1 API version of the emulator: 33