arpitkatiyar1999 / Country-Picker

Jetpack Compose Country Code Picker
Apache License 2.0
9 stars 2 forks source link

App Crash in Compose Material 3 version 1.3.0 or above #4

Open EvilHydra09 opened 4 days ago

EvilHydra09 commented 4 days ago

java.lang.NoSuchMethodError: No static method BasicAlertDialog(Lkotlin/jvm/functions/Function0;Landroidx/compose/ui/Modifier;Landroidx/compose/ui/window/DialogProperties;Lkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;II)V in class Landroidx/compose/material3/AndroidAlertDialog_androidKt; or its super classes (declaration of 'androidx.compose.material3.AndroidAlertDialog_androidKt' appears in /data/app/~~MnOqQKmpDr3D0Rg7rwDTLQ==/com.dating.sacrenacompose-DBqq56eBCb7IUeeYsO39Cw==/base.apk!classes18.dex) at com.arpitkatiyarprojects.countrypicker.CountrySelectionDialogKt.CountrySelectionDialog(CountrySelectionDialog.kt:75) at com.arpitkatiyarprojects.countrypicker.CountryPickerKt.CountryPicker(CountryPicker.kt:77) at com.arpitkatiyarprojects.countrypicker.CountryPickerOutlinedTextFieldKt$CountryPickerOutlinedTextField$3.invoke(CountryPickerOutlinedTextField.kt:98) at com.arpitkatiyarprojects.countrypicker.CountryPickerOutlinedTextFieldKt$CountryPickerOutlinedTextField$3.invoke(CountryPickerOutlinedTextField.kt:97)

arpitkatiyar1999 commented 4 days ago

Hi @EvilHydra09

Please try cleaning and rebuilding the application to ensure all dependencies are correctly resolved. If the issue persists, could you kindly share the build.gradle file for the app module? This will help provide better insights into the configuration and identify potential issues.