Issue
Iam complete new to Kotlin and to Jetpack Compose i have made the Jetpack Compose basics (CodeAlong) and at the end it keeps saying Unresolved reference Expandless ore Unresolved reference: ExpandMore. Can someone help me find the Right thing?!
I searched a bit but my Knowledge isn't big enough to find an answerenter image description here
Solution
There might be an import for Icons.Filled
missing. Please try to change your code to:
imageVector = if (expanded) Icons.Filled.ExpandLess else Icons.Filled.ExpandMore
If that does not resolve your issue, check the dependencies in your module's build.gradle
file and try to add the following line:
implementation "androidx.compose.material:material-icons-extended:1.5.4"
If Android Studio asks to to synchronize the Gradle files, click okay.
Answered By - BenjyTec
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.