The latest verison of compose-multiplatform still ...
# compose
z
The latest verison of compose-multiplatform still brings in a material 2 dependency implicitly. Earlier last year I brought up this issue but it has yet to be resolved. I was just hoping maybe I can bring more attention to it since it can be frustrating when using material 3. A workaround I found is adding this in my gradle configuration file
Copy code
configurations.all {
    resolutionStrategy.dependencySubstitution {
        substitute(module("org.jetbrains.compose.material:material"))
            .using(module("org.jetbrains.compose.material3:material3:${libs.versions.compose.multiplatform}"))
            .because("Material 3 is newer")
    }
}