Closed skolson closed 10 months ago
SelectableDates
was introduced in m3 1.2.0-alpha-02. Compose multiplatform is currently based on m3 1.1.1
Hello! Thanks for submitting the issue.
@alexzhirkevich is right, I'll add a bit more context.
Compatibility between material3 in Compose and material3 alpha in Google might be broken, like in this situation. Please, try to switch on stable 1.1.1 version
You can find more information here
Sounds like Material 3 1.2.0 support is not targeted for CMP 1.5.0. Is there a target release of CMP planned yet for support of Material 3 1.2.0? Also thanks for the info that this started with 1.2.0-alpha02!
Using: Kotlin 1.9 Compose material3 MP 1.5.0-rc02 android compose material3 1.6.0-alpha03
With the above combination, defining an MP Composable using the DatePicker stuff builds fine, but fails at runtime with this exception:
java.lang.NoSuchMethodError: No static method rememberDatePickerState
After research, looks like Android Compose has added a 5th argument to function rememberDatePickerState, so now it has this signature (I'm unsure which release started this):
The MP signature for the same function does not have the
selectableDates
argument. So build works but runtime fails. The Gradle build seems to resolve with the android signature, not the MP signature.For ongoing compatibility with android Compose, looks like the MP signature for this function needs an update. Here's the current MP signature for this function: