Mike Patterson
07/15/2020, 3:28 PMWhat went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
> Could not resolve com.realeyes.videoadvertising:videoadvertising-android:0.2.300.
Required by:
project :app
> No matching variant of com.realeyes.videoadvertising:videoadvertising-android:0.2.300 was found. The consumer was configured to find an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.gradle.internal.dependency.AndroidTypeAttr' with value 'Aar', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- Variant 'android-releaseApiElements' capability com.realeyes.videoadvertising:videoadvertising-android:0.2.300 declares an API of a component, as well as attribute 'com.android.build.gradle.internal.dependency.AndroidTypeAttr' with value 'Aar', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug'
But I must be missing something cause I declare the android build to have 'debug' and 'release' published
kotlin {
android {
publishLibraryVariants("release", "debug")
}
Is there an extra step to make the module metadata publish debug variants for a kotlin multi-platform project?