Hai Tran
12/25/2020, 1:16 PMCould not determine the dependencies of task ':backend:distTar'.
> Could not resolve all task dependencies for configuration ':backend:runtimeClasspath'.
> Could not resolve project :shared.
Required by:
project :backend
> The consumer was configured to find a runtime of a library compatible with Java 11, packaged as a jar, and its dependencies declared externally. However we cannot choose between the following variants of project :shared:
- androidDebugAndroidTestCompile
- androidDebugAndroidTestRuntime
- androidDebugCompile
- androidDebugRuntime
- androidDebugUnitTestCompile
- androidDebugUnitTestRuntime
- androidReleaseCompile
- androidReleaseRuntime
- androidReleaseUnitTestCompile
- androidReleaseUnitTestRuntime
- debugRuntimeElements
- iosArm64Compile
- iosArm64CompileOnly
- iosArm64Default
- iosArm64RuntimeOnly
- iosArm64TestCompile
- iosX64Compile
- iosX64CompileOnly
- iosX64Default
- iosX64RuntimeOnly
- iosX64TestCompile
- metadataCommonMainCompile
- metadataCommonMainCompileOnly
- metadataCompile
- metadataCompileOnly
- metadataDefault
- metadataIosMainCompile
- metadataIosMainCompileOnly
- releaseRuntimeElements
All of them match the consumer attributes:
- Variant 'androidDebugAndroidTestCompile' capability Alu:shared:unspecified:
- Unmatched attributes:
- Doesn't say anything about its component category (required a library)
- Doesn't say anything about how its dependencies are found (required its dependencies declared externally)
- Doesn't say anything about its target Java version (required compatibility with Java 11)
- Doesn't say anything about its elements (required them packaged as a jar)
- Doesn't say anything about its usage (required a runtime)
- Provides attribute 'org.jetbrains.kotlin.localToProject' with value 'local to :shared' 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
build.gradle.kts(:backend)
plugins *{*
* *_application_
}
_dependencies_ *{*
* *_implementation_(_project_(":shared"))
}
_application_ *{*
* *_mainClass_.set("ServerKt")
}
setting.gradle.kts
pluginManagement *{*
* *repositories *{*
* *google()
jcenter()
gradlePluginPortal()
mavenCentral()
*}*
}
_rootProject_._name_ = "Alu"
include(":androidApp")
include(":shared")
include(":backend")
anything else it is just created by default of the KMM plugin