Hi, I’m trying to successfully publish and import ...
# multiplatform
r
Hi, I’m trying to successfully publish and import (in another project) the aar file for my kmp core code. I followed the steps mentioned in Kotlin Publishing multiplatform libraries and Android Studio - Publish Your Library, I’m able to publish the file but I’m getting an error while importing the dependency. Would someone please help me resolve this? I’m attaching the build.grale.kts for the kmp project and the build output in the dependent project.
p
Is failing to find the artifact, it takes some minutes from the time you publish to maven central expose it to the public
I also noticed in the Android publication you should include the
debug
variant, it seems that the consumer project is asking for it
Also the consumer project seems to have defined a new target
androidJvm
which the library doesn't provide. You might import your library in Android target and JVM target independently
c
Maybe better off to try this in your maven local first.
r
Thanks for the input. I will try these and update the thread.