https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

adjorno

05/07/2021, 7:29 AM
Hi! I am trying to share crypto protocols between android app and server side, for that purpose my app has the following structure: Android app -> jvm library (crypto protocols) -> multiplatform library (android and jvm implementations of platform specific cryptoprimitives) When I build the app in the release mode I am facing the following error:
Copy code
The consumer was configured to find an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release'. However we cannot choose between the following variants of security:multiplatform:1.0.0:
          - jvmApiElements-published
          - jvmRuntimeElements-published
          - releaseApiElements-published
          - releaseRuntimeElements-published
          - Variant 'releaseApiElements-published' capability security:multiplatform:1.0.0 declares an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release':
              - Unmatched attributes:
                  - Provides attribute 'com.android.build.api.attributes.VariantAttr' with value 'release' but the consumer didn't ask for it
                  - Provides release status but the consumer didn't ask for it
                  - Provides attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but the consumer didn't ask for it
I would expect that Gradle would request for androidJvm platform so the dependency can be resolved. But it states that “consumer did not ask for it”. Does anybody know what is the issue and how to solve it.
t

turansky

05/07/2021, 9:07 AM
I have similar issue JS part Issue required - https://youtrack.jetbrains.com/issues/KT 🙂 cc @aerialist
4 Views