You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In which task and step of the codelab can this issue be found?
Describe the problem
I'm getting syntax error on var result by remember { mutableStateOf(1) } @Composable invocations can only happen from the context of a @Composable function
Steps to reproduce?
Go to...
Click on...
See error...
Versions Android Studio version: Kaola 2024.1.2 API version of the emulator:
Additional information Include screenshots if they would be useful in clarifying the problem.
The text was updated successfully, but these errors were encountered:
You are declaring the result and imageResource variables outside the composable DiceWithButtonAndImage function, they should be declared inside it. See solution
URL of codelab
In which task and step of the codelab can this issue be found?
Describe the problem
I'm getting syntax error on
var result by remember { mutableStateOf(1) }
@Composable invocations can only happen from the context of a @Composable function
Steps to reproduce?
Versions
Android Studio version: Kaola 2024.1.2
API version of the emulator:
Additional information
Include screenshots if they would be useful in clarifying the problem.
The text was updated successfully, but these errors were encountered: