Skip to content

Cannot find a version of 'org.jetbrains.kotlinx:atomicfu' that satisfies the version constraints #469

Open
@GuilhE

Description

atomicfu was already on 0.25.0 and working, but suddenly when running for Android I'm getting:

Execution failed for task ':shared:compileDebugKotlinAndroid'.
> Error while evaluating property 'friendPathsSet$kotlin_gradle_plugin_common' of task ':shared:compileDebugKotlinAndroid'.
   > Could not resolve all files for configuration ':shared:debugCompileClasspath'.
      > Could not resolve org.jetbrains.kotlinx:atomicfu:0.25.0.
        Required by:
            project :shared
         > Cannot find a version of 'org.jetbrains.kotlinx:atomicfu' that satisfies the version constraints:
              Dependency path ':shared:unspecified' --> 'org.jetbrains.kotlinx:atomicfu:0.25.0'
              Constraint path ':shared:unspecified' --> 'org.jetbrains.kotlinx:atomicfu:{strictly 0.23.2}' because of the following reason: version resolved in configuration ':shared:debugRuntimeClasspath' by consistent resolution

project build.gradle:

plugins {
    alias(libs.plugins.android.application) apply false
    alias(libs.plugins.android.library) apply false
    alias(libs.plugins.kotlinx.compose) apply false
    alias(libs.plugins.kotlinx.compose.compiler) apply false
    alias(libs.plugins.kotlinx.atomicfu) apply false
}

shared build.gradle:

plugins {
    ...
    alias(libs.plugins.kotlinx.atomicfu)
    //id("org.jetbrains.kotlinx.atomicfu") version "0.25.0" // -> this fails too
}

Screenshot 2024-09-03 at 11 08 03

No problem running for iOS, Desktop and Wasm.

ps: I've checked if any of other dependencies uses atomicfu and they do, but none on 0.23.2 they are on 0.24.0. And as I said it was already working. The only change was bumping Kotlin version, but I've rolledback and the problem still remains. Cleaned all caches too. 🤷🏼

Metadata

Assignees

No one assigned

    Labels

    compiler-pluginIssues related to the atomicfu-compiler-plugin

    Type

    No type

    Projects

    • Status

      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions