I'm getting this error in compile time in a projec...
# koin
p
I'm getting this error in compile time in a project with two SDKs. Is really from koin or maybe some configuration at my side? The scenario: • SDK-A and SDK-B ◦ Updated to koin 3.5.1 and koin-bom applied • Project updated to koin 3.5.1 and koin-bom applied ◦ SDK-A updated ◦ SDK-B updated
Copy code
No matching variant of io.insert-koin:koin-bom:3.5.3 was found. The consumer was configured to find a library for use during runtime, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.2.0', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
          - Variant 'apiElements' capability io.insert-koin:koin-bom:3.5.3:
              - Incompatible because this component declares a platform for use during compile-time and the consumer needed a library for use during runtime
              - Other compatible attributes:
                  - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '8.2.0')
                  - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
                  - Doesn't say anything about its target Java environment (preferred optimized for Android)
                  - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
          - Variant 'enforcedApiElements' capability io.insert-koin:koin-bom-derived-enforced-platform:3.5.3:
              - Incompatible because this component declares an enforced platform for use during compile-time and the consumer needed a library for use during runtime
              - Other compatible attributes:
                  - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '8.2.0')
                  - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
                  - Doesn't say anything about its target Java environment (preferred optimized for Android)
                  - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
          - Variant 'enforcedRuntimeElements' capability io.insert-koin:koin-bom-derived-enforced-platform:3.5.3 declares a component for use during runtime:
              - Incompatible because this component declares an enforced platform and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '8.2.0')
                  - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
                  - Doesn't say anything about its target Java environment (preferred optimized for Android)
                  - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
          - Variant 'runtimeElements' capability io.insert-koin:koin-bom:3.5.3 declares a component for use during runtime:
              - Incompatible because this component declares a platform and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '8.2.0')
                  - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
                  - Doesn't say anything about its target Java environment (preferred optimized for Android)
                  - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
a
Copy code
io.insert-koin:koin-bom:3.5.3 was found
why this? do you have more clues?
p
I've no clues. To use koin-bom is it like that, @arnaud.giuliani?
Copy code
//Koin
    implementation "io.insert-koin:koin-bom:$koin_bom"
    implementation "io.insert-koin:koin-android"
a
nope
Copy code
implementation platform("io.insert-koin:koin-bom:$koin_bom")
p
Ohhhh probably that was the problem. 😁
I will open a issue and increase koin setup, with this information. 😉 https://insert-koin.io/docs/setup/koin
a
yes, seen that it's not documented 😕
p
@arnaud.giuliani the PR is open 🙂 https://github.com/InsertKoinIO/koin/pull/1760
👍 1
172 Views