https://kotlinlang.org logo
#gradle
Title
h

Hai Tran

12/22/2020, 5:16 PM
I’m try to add Shared project to Backend project when using I’m try to add Shared project to Backend project when using
Copy code
implementation(project(":shared", "default"))
only “androidMain” source set can access not “commonMain” source set(what I need) so i replace it with
Copy code
implementation(project(":shared"))
and build, get error
Could 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, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'. However we cannot choose between the following variants of project :shared:
- iosArm64RuntimeOnly
- iosX64RuntimeOnly