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
Trying to use the library with Compose versions 1.7.1 and above will result in an app crash.
To Reproduce
Try to display the dialog.
See the following stack trace:
FATAL EXCEPTION: main
Process: com.myapp, PID: 29211
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/compose/material/icons/Icons;
at com.vanpra.composematerialdialogs.datetime.date.DatePickerKt.CalendarViewHeader(DatePicker.kt:266)
at com.vanpra.composematerialdialogs.datetime.date.DatePickerKt.access$CalendarViewHeader(DatePicker.kt:1)
at com.vanpra.composematerialdialogs.datetime.date.DatePickerKt$DatePickerImpl$1$1.invoke(DatePicker.kt:134)
at com.vanpra.composematerialdialogs.datetime.date.DatePickerKt$DatePickerImpl$1$1.invoke(DatePicker.kt:124)
...
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.compose.material.icons.Icons" on path: DexPathList[[zip file "/data/app/~~rwJMsw9MrszunlanowPNmw==/au.com.seatfrog.icarus.dev-xtk1iU-7_ERqdGHO1XOHRg==/base.apk"],nativeLibraryDirectories=[/data/app/~~rwJMsw9MrszunlanowPNmw==/au.com.seatfrog.icarus.dev-xtk1iU-7_ERqdGHO1XOHRg==/lib/arm64, /data/app/~~rwJMsw9MrszunlanowPNmw==/au.com.seatfrog.icarus.dev-xtk1iU-7_ERqdGHO1XOHRg==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
at java.lang.ClassLoader.loadClass(ClassLoader.java:637)
at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
This is caused by usage of the following files that are no longer included in the androidx.compose.material:material package (despite no relevant release notes mentioned):
One (messy) fix for this is forward porting the specific files this library requires.
So, make sure these 3 files are copied (with unchanged package name) into your app, so they are available for the library:
Icons.kt
KeyboardArrowLeft.kt
KeyboardArrowRight.kt
I've included the source code from Compose 1.7.0 in a GitHub Gist, so just copy these 3 files into your project. You can also find this source code by opening DatePicker.kt and finding the definitions there.
JakeSteam
changed the title
Library not compatible with Compose 1.7.5+
Library not compatible with Compose 1.7.1+
Dec 23, 2024
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Trying to use the library with Compose versions 1.7.1 and above will result in an app crash.
To Reproduce
This is caused by usage of the following files that are no longer included in the
androidx.compose.material:material
package (despite no relevant release notes mentioned):Expected behaviour
I expect to see the dialog.
Please complete the following information about your device:
Any device, any OS.
The text was updated successfully, but these errors were encountered: