You can only specify dependencies on KMP libraries in commonMain.
commonMain
If you'd like to develop KMP app with Material UI, then have a look on Compose Multiplatform by Jetbrains https://www.jetbrains.com/compose-multiplatform/