https://kotlinlang.org logo
#squarelibraries
Title
# squarelibraries
z

Zoltan Demant

11/07/2023, 1:51 PM
Gradle has been complaining about SqlDelight since I adopted the 2.0.0 release:
Copy code
Failed to determine the latest version for the following dependencies app.cash.sqldelight:android-driver 2.0.0.
Thankful for any & all insights! More details in thread.
I can compile my project just fine for the most part, but if I try to generate a baseline profile, run ben-manes-versions or something along those lines - I run into this issue 99% of the time.
Copy code
Failed to determine the latest version for the following dependencies (use --info for details):
 - app.cash.sqldelight:android-driver
     2.0.0
The exception that is the cause of unresolved state: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve app.cash.sqldelight:android-driver:+.
Required by:
    project :storage:database
Caused by: org.gradle.internal.component.AmbiguousConfigurationSelectionException: The consumer was configured to find a library for use during 'kotlin-metadata', compatible with any Java version, preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common'. However we cannot choose between the following variants of app.cash.sqldelight:android-driver:2.0.0:
  - debugVariantMavenApiPublication
  - debugVariantMavenRuntimePublication
  - releaseVariantMavenApiPublication
  - releaseVariantMavenRuntimePublication
All of them match the consumer attributes:
  - Variant 'debugVariantMavenApiPublication' capability app.cash.sqldelight:android-driver:2.0.0 declares a library for use during compile-time:
      - Unmatched attributes:
          - Provides attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' but the consumer didn't ask for it
          - Provides its dependencies declared externally but the consumer didn't ask for it
          - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
          - Doesn't say anything about its target Java version (required compatibility with any Java version)
          - Provides its elements with the library elements 'aar' but the consumer didn't ask for it
          - Provides release status but the consumer didn't ask for it
          - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'common')
  - Variant 'debugVariantMavenRuntimePublication' capability app.cash.sqldelight:android-driver:2.0.0 declares a library for use during runtime:
      - Unmatched attributes:
          - Provides attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' but the consumer didn't ask for it
          - Provides its dependencies declared externally but the consumer didn't ask for it
          - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
          - Doesn't say anything about its target Java version (required compatibility with any Java version)
          - Provides its elements with the library elements 'aar' but the consumer didn't ask for it
          - Provides release status but the consumer didn't ask for it
          - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'common')
  - Variant 'releaseVariantMavenApiPublication' capability app.cash.sqldelight:android-driver:2.0.0 declares a library for use during compile-time:
      - Unmatched attributes:
          - Provides attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' but the consumer didn't ask for it
          - Provides its dependencies declared externally but the consumer didn't ask for it
          - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
          - Doesn't say anything about its target Java version (required compatibility with any Java version)
          - Provides its elements with the library elements 'aar' but the consumer didn't ask for it
          - Provides release status but the consumer didn't ask for it
          - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'common')
  - Variant 'releaseVariantMavenRuntimePublication' capability app.cash.sqldelight:android-driver:2.0.0 declares a library for use during runtime:
      - Unmatched attributes:
          - Provides attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' but the consumer didn't ask for it
          - Provides its dependencies declared externally but the consumer didn't ask for it
          - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
          - Doesn't say anything about its target Java version (required compatibility with any Java version)
          - Provides its elements with the library elements 'aar' but the consumer didn't ask for it
          - Provides release status but the consumer didn't ask for it
          - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'common')
The following variants were also considered but didn't match the requested attributes:
  - Variant 'debugVariantMavenJavaDocPublication' capability app.cash.sqldelight:android-driver:2.0.0 declares a component for use during runtime:
      - Incompatible because this component declares documentation and the consumer needed a library
      - Other compatible attributes:
          - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
          - Doesn't say anything about its target Java version (required compatibility with any Java version)
          - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'common')
  - Variant 'debugVariantMavenSourcePublication' capability app.cash.sqldelight:android-driver:2.0.0 declares a component for use during runtime:
      - Incompatible because this component declares documentation and the consumer needed a library
      - Other compatible attributes:
          - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
          - Doesn't say anything about its target Java version (required compatibility with any Java version)
          - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'common')
  - Variant 'releaseVariantMavenJavaDocPublication' capability app.cash.sqldelight:android-driver:2.0.0 declares a component for use during runtime:
      - Incompatible because this component declares documentation and the consumer needed a library
      - Other compatible attributes:
          - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
          - Doesn't say anything about its target Java version (required compatibility with any Java version)
          - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'common')
  - Variant 'releaseVariantMavenSourcePublication' capability app.cash.sqldelight:android-driver:2.0.0 declares a component for use during runtime:
      - Incompatible because this component declares documentation and the consumer needed a library
      - Other compatible attributes:
          - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
          - Doesn't say anything about its target Java version (required compatibility with any Java version)
11 Views