0

I want to show DatePickerDialog in Compose project, and for reference I am using content provided by Android team on official Site, but when I am trying to use in project it is not resolving reference to this Composables.

I try to find solution all over the internet and for reference I usually use Android official site, here is solution provided by Android team but it is not working in my project.

Official Android Site Url, where I find Solution but it is not working in my project

  • Which version of M3 are you using? – Gabriele Mariotti Mar 11 '23 at 07:24
  • 1
    I think it is 1.01, also I am using compose bom with following material libs, implementation platform('androidx.compose:compose-bom:2023.01.00') implementation 'androidx.compose.material3:material3' implementation 'com.google.android.material:material:1.8.0' implementation("androidx.compose.material3:material3-window-size-class:1.0.1") – Shubham kumar Mar 11 '23 at 08:51

1 Answers1

2

The M3 DatePicker requires at least the M3 version 1.1.0-alpha04.

The BOM in general doesn't contain the alpha releases.
The BOM 2023.01.00 has the library M3 1.0.1. Check the library version mapping doc.

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841