darkmoon_uk
01/15/2021, 7:52 AMval commonTest by getting {
dependencies {
api(Dependencies.KotlinTest.COMMON)
api(Dependencies.KotlinTest.ANNOTATIONS)
api("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.2") //This isn't resolved
}
}
Trying to resolve this gets the error in the thread - it looks like there's just no version of kotlinx-coroutines-test
for ios_x64
- is this a known limitation, packaging problem or... ?darkmoon_uk
01/15/2021, 7:53 AMExecution failed for task ':shared:compileTestKotlinIosX64'.
> Could not resolve all files for configuration ':shared:iosX64TestCompileKlibraries'.
> Could not resolve org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.2.
Required by:
project :shared
> No matching variant of org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.2 was found. The consumer was configured to find a usage of 'kotlin-api' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native', attribute 'org.jetbrains.kotlin.native.target' with value 'ios_x64' but:
- Variant 'apiElements' capability org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.2 declares an API of a component:
- Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
- Other compatible attribute:
- Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_x64')
- Variant 'runtimeElements' capability org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.2 declares a runtime of a component:
- Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
- Other compatible attribute:
- Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_x64')