Status Update
Comments
kl...@google.com <kl...@google.com>
an...@google.com <an...@google.com> #2
Thanks for the report! This is due to an issue in the Compose Compiler where marking a class as @Stable
would generate binaries that aren't ABI compatible with previous library versions. KeyboardActions
was recently marked as @Stable
which is where this issue is stemming from.
We've addressed this issue in the compiler to prevent this from happening in the future. The crash you reported will be fixed when we release the next version of the Foundation library, which will be compiled with this patch in place. The fix here only affects the Foundation library, so you won't need to update any other libraries and library owners won't have to make any changes after we publish this fix.
You may also see this issue in other libraries or modules if they have Composable UI elements that utilize KeyboardActions
internally and were compiled against Foundation 1.4.0-alpha03
or earlier.
As a workaround for material3
, you can upgrade to the latest alpha release, which is version 1.1.0-alpha04
material
, use version 1.4.0-alpha04
1.4.0-alpha03
and upgrade to the next release when it's available.
ro...@veeva.com <ro...@veeva.com> #3
Thank you for the answer, I can confirm that upgrading to androidx.compose.material3:material3:1.1.0-alpha04
seems to be a valid workaround.
Description
Jetpack Compose version: 1.4.0-alpha04
Jetpack Compose component used: androidx.compose.material3:material3:1.0.1
Android Studio Build: 7.4.0-rc03
Kotlin version: 1.7.21
The issue started after upgrading from
1.4.0-alpha03
to1.4.0-alpha04
. To reproduce the issue you have to use aTextField
together with aKeyboardActions
(see repro project below).Steps to Reproduce or Code Sample to Reproduce:
Stack trace (if applicable):