Status Update
Comments
he...@gmail.com <he...@gmail.com> #2
here is the full error message:
java.lang.NoSuchFieldError: No static field $stable of type I in class Landroidx/compose/foundation/text/KeyboardActions; or its superclasses (declaration of 'androidx.compose.foundation.text.KeyboardActions' appears in /data/app/~~ggrwyg0FaF8w-d1B0cLMgA==/com.example.myapp-SV0HeaEG_BlVBOaRbuFsCw==/base.apk)
at androidx.compose.material3.TextFieldKt$TextField$2.invoke(TextField.kt:206)
at androidx.compose.material3.TextFieldKt$TextField$2.invoke(TextField.kt:186)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)
at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228)
at androidx.compose.material3.TextFieldKt.TextField(TextField.kt:186)
java.lang.NoSuchFieldError: No static field $stable of type I in class Landroidx/compose/foundation/text/KeyboardActions; or its superclasses (declaration of 'androidx.compose.foundation.text.KeyboardActions' appears in /data/app/~~ggrwyg0FaF8w-d1B0cLMgA==/com.example.myapp-SV0HeaEG_BlVBOaRbuFsCw==/base.apk)
at androidx.compose.material3.TextFieldKt$TextField$2.invoke(TextField.kt:206)
at androidx.compose.material3.TextFieldKt$TextField$2.invoke(TextField.kt:186)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)
at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228)
at androidx.compose.material3.TextFieldKt.TextField(TextField.kt:186)
ma...@google.com <ma...@google.com>
ey...@gmail.com <ey...@gmail.com> #3
Please refer to
ti...@google.com <ti...@google.com> #4
This issue was fixed in June 2022. Seems like a recent change has triggered the issue to resurface.
Duplicating this issue to
Description
Jetpack Compose component used:FloatingActionButton
Android Studio Build:#AI-212.5712.43.2112.8512546
Kotlin version:1.6.21
Steps to Reproduce or Code Sample to Reproduce:
var visibility by remember {
mutableStateOf(true)
}
Scaffold(
floatingActionButton = {
AnimatedVisibility(visible = visibility) {
FloatingActionButton(
modifier = Modifier.animateEnterExit(
enter = slideInVertically(),
exit = slideOutVertically()
),
onClick = { }) {
Icon(imageVector = Icons.Filled.Add, contentDescription = "Add")
}
}
}
){
Button(onClick = { visibility = !visibility }) {
}
}
Stack trace (if applicable):