https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
p

Patrick Jackson

07/24/2019, 2:21 PM
Running into a "Cyclic dependency in library graph" error while compiling, even though it does not appear to be a cyclic dep. I have lib A and lib B. Both are published KMP artifacts. B depends on A. My project depends on A & B. The cyclic dep error happens for lib B. Only happens for native. JVM compiles fine. Any ideas?
a

Artyom Degtyarev [JB]

07/24/2019, 2:35 PM
p

Patrick Jackson

07/24/2019, 3:30 PM
@Artyom Degtyarev [JB] TY so much. got it working. is there an issue created for this? seems like this will be a common problem
a

alexander.gorshenev

07/24/2019, 3:36 PM
@Patrick Jackson could you go into some details what has caused the cycle to appear?
p

Patrick Jackson

07/24/2019, 3:40 PM
Still not 100% sure. Appears that having artifacts with the same prefix and gradle module name will cause this error. For example libs A, B & C all are from org.mycompany and each lib has its own gradle project with a module named 'lib'. The metadata in the manifest file of the klibs leads the compiler in a circular dep path