This is a companion discussion topic for the original entry at https://www.kodeco.com/38052357-your-second-kotlin-android-app/lessons/15
This is a companion discussion topic for the original entry at https://www.kodeco.com/38052357-your-second-kotlin-android-app/lessons/15
Android Studio (2022.3.1 Patch 1) complains that Scaffold
is experimental and requires the @OptIn(…)
annotation. The video and repo don’t show the annotation though it was added in a previous video. Pretty easy to fix, but could trip some folks up.
Hi,
The repo uses androidx.compose.material3:material3:1.1.0
As of 1.1.0-alpha07
, Scaffold is no longer considered an Experimental API. You can track the change at Google Issue Tracker
Can you please check which version of meterial3 you’re using locally in your project?
AS Didn’t specify the version number when the project was created, I added 1.1.1
as the specific version and no longer need the experimental annotation.
1 Like