-
-
Notifications
You must be signed in to change notification settings - Fork 51
Metadata issue #55
Comments
I think I have solved the issue, I was trying to use the kotlin generated libs from a pure java project. it is necessary to add the "attribute(KotlinPlatformType.attribute, KotlinPlatformType.jvm)" to the dependency configuration in order to disambiguate between the different options |
Can you post your build.gradle file |
I can't, but I think this should have the answer, https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#disambiguating-targets |
I get the same error, but I cannot apply "attribute(KotlinPlatformType.attribute, KotlinPlatformType.jvm)" to the "com.soywiz.korlibs.klock:klock" dependency because I have configured the multiplatform project to use the Js variant. This is not a problem when I compile the project but currently, I am using liquibaseRuntime, so I think this could be the problem. |
I fixed this changing the "com.soywiz.korlibs.klock:klock" dependency to compileOnly.
|
Hi,
I think use of metadata is the right way to go.
However, there seems to be an issue,
I am depending on klock (transitively) via other libs of mine.
And I get this error,
not sure why the android libs are getting in the way?
The text was updated successfully, but these errors were encountered: