Skip to content

Missing KMM modules in 4.2.1 #149

@Manuel149Br

Description

@Manuel149Br

Describe the bug
After updating the qrcode-kotlin dependency in the commonMain section of our KMM project from a previous version (e.g., 4.1.1) to the latest 4.2.1, the Gradle build fails during the iOS target compilation with a dependency resolution error. Specifically, Gradle is unable to download the modules for iosX64, iosArm64, and iosSimulatorArm64 targets.

To Reproduce
Update the build.gradle.kts file in the shared module of the KMM project.

kotlin {
    // ...
    sourceSets {
        commonMain.dependencies {
            implementation("io.github.g0dkar:qrcode-kotlin:4.2.1")
        }
        // ...
    }
    // ...
} 

When trying to sync the project, it fails with:

:shared:iosArm64Main: Could not find io.github.g0dkar:qrcode-kotlin:4.2.1.
Required by:
    project :shared

Expected behavior
Dependency 4.2.1 should be usable as commonMain dependency like in 4.1.1

Context
I tried it with a new project generated by KMP Wizard.
NotWorking(4.2.1).zip
Working(4.1.1).zip

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions